Security context

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

firebase/firebase-js-sdk
main @ b74b53c
3
Fixes
0
CVEs
HIGH
Peak severity
100.0%
Coverage
Highlights
Auth Bypass: 2 prior fixes. Scrutinize any change in this area.
messaging: most-fixed (1 issue). Treat as high-risk during review.
3 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.

Auth Bypass: The reCAPTCHA verifier returns a fake token on failure, allowing the auth request to proceed and bypassing bot protection. This fail-open behavior is a direct auth bypass risk.
Auth Bypass: Push subscription token validation was added to prevent reuse of stale tokens, but the original lack of validation allowed token reuse, potentially granting unauthorized access to messaging services.
Dependency Vulnerability: Multiple dependencies (decode-uri-component, word-wrap, micromatch) had known ReDoS and other vulnerabilities, requiring version bumps to patched versions. Unpatched dependencies remain an ongoing risk.