Security context

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

Skyscanner/backpack
main @ 98f2d71
8
Fixes
1
CVEs
HIGH
Peak severity
85.7%
Coverage
Highlights
Denial of Service: 2 prior fixes. Scrutinize any change in this area.
Actions: most-fixed (3 issues). 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.

Denial of Service: Unvalidated user-controlled language values (html[lang]) passed directly to Intl.Locale instantiation can crash client-side React rendering, triggering infinite crash loops. Developers must enforce strict format validation or handle parsing errors inside a try-catch block before instantiation.
Malicious Code Execution: Malicious pull requests can trigger workflows that execute untrusted package script lifecycle events (such as 'npm version' triggers), leading to compromise of sensitive npm publishing tokens. Publishing tasks must run with scripts ignored and manage metadata changes via safer, non-executable operations.
Token Leakage: Misconfiguration of workflow triggers, such as using 'pull_request_target' without limiting write access or omitting persist-credentials restrictions, can expose administrative repository privileges and internal tokens to external pull requests.