Security context

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

parcel-bundler/parcel
v2 @ 5948485
3
Fixes
2
CVEs
HIGH
Peak severity
Highlights
Cross-Site WebSocket Hijacking: 1 prior fix. Scrutinize any change in this area.
packages/core/parcel-bundler/src/Asset.js: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix 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 WebSocket Hijacking: Weak or missing origin validation in the HMR WebSocket server allows arbitrary malicious websites visited by a developer to establish a connection and exfiltrate local source code. This is a known high-severity vector historically tracked under CVE-2018-14731.
Path Traversal: Using un-sanitized package names (this.package.name) to determine file paths during bundling allows malicious packages to write arbitrary files outside the intended build directory, potentially leading to arbitrary code execution during the build phase.
Reflected XSS: Rendering unescaped compiler errors or ANSI colors into the browser overlay DOM using raw innerHTML allows attackers who can trigger specific build errors to execute arbitrary scripts in the developer's browser context.