Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

nlkitai/nlux
latest @ 00007d6
5
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Cross-Site Scripting (XSS): 3 prior fixes. Scrutinize any change in this area.
packages/extra/markdown/src/index.ts: most-fixed (1 issue). Treat as high-risk during review.
5 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Cross-Site Scripting (XSS): Rendering markdown snapshot blocks and code components via dangerouslySetInnerHTML without strict sanitization and output encoding can lead to high-impact DOM XSS inside React chat interfaces. Developers should ensure the custom Trusted Types policy is consistently enforced.
Cross-Site Scripting (XSS): Direct assignments to raw DOM properties like innerHTML during chat bubble generation bypass React's standard output escaping. This requires a mandatory, pre-assignment htmlSanitizer call to avoid arbitrary script execution in client browsers.
Reflected XSS: Using parsing engines with known limitations or high vulnerability profiles (such as snarkdown) to process dynamic inputs directly exposes users to Reflected XSS when rendering formatted messages.