Security context

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

yiisoft/yii2-gii
master @ ca976b0
2
Fixes
2
CVEs
HIGH
Peak severity
Highlights
CSRF: 1 prior fix. Scrutinize any change in this area.
src/assets/js/gii.js: most-fixed (1 issue). Treat as high-risk during review.
0 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.

Remote Code Execution (RCE): Attackers can inject arbitrary PHP code via unsanitized input fields such as 'messageCategory', which is then written into generated model files, resulting in full remote code execution.
Cross-Site Scripting (XSS): Unsanitized sticky input values loaded into the DOM via innerHTML allow attackers to execute arbitrary scripts in the user's browser context.
Cross-Site Request Forgery (CSRF): Static rendering of CSRF tags can lead to validation failures or bypasses; registering them dynamically ensures proper session binding and state protection.