Security context

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

spatie/laravel-permission
main @ 5350697
4
Fixes
0
CVEs
HIGH
Peak severity
66.7%
Coverage
Highlights
Auth Bypass: 3 prior fixes. Scrutinize any change in this area.
.github/workflows/dependabot-auto-merge.yml: most-fixed (1 issue). Treat as high-risk during review.
2 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: Validation flaws in the permission syncing mechanism allow existing permissions to be completely detached if a non-existent permission is passed, leading to unauthorized state changes or accidental privilege revocation.
Auth Bypass: Over-reliance on mutable workflow trigger actor variables rather than immutable pull-request properties can permit unprivileged actors to trigger sensitive automated actions.
Auth Bypass: Failing to invalidate the wildcard permission cache upon role revocation allows users to retain and exercise permissions they should no longer possess.