Security context

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

drawdb-io/drawdb
main @ 596f504
2
Fixes
0
CVEs
MEDIUM
Peak severity
Highlights
Cross-Site Scripting (XSS): 1 prior fix. Scrutinize any change in this area.
src/context/TransformContext.jsx: most-fixed (1 issue). Treat as high-risk during review.
0 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): Using innerHTML with raw user-supplied text when measuring or rendering comments allows attackers to inject malicious scripts. This was remediated by switching to textContent.
Denial of Service: Failing to validate math or coordinate boundaries in state updates allowed NaN values to propagate to setTransform, corrupting the canvas transform state and bricking the user interface.