Security context

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

datocms/js-rest-api-clients
main @ 0411154
1
Fixes
0
CVEs
HIGH
Peak severity
100.0%
Coverage
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
packages/cma-client/src/resources/Role.ts: 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.

Auth Bypass: Flawed logic in role permission comparison iterated over array indices instead of object keys, which caused incorrect rule matches and resulted in the accidental deletion of rules, leading to unintended authorization bypasses.