Security context

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

zendframework/zend-view
master @ 1b8c189
2
Fixes
0
CVEs
HIGH
Peak severity
0.0%
Coverage
Highlights
Cross-Site Scripting (XSS): 1 prior fix. Scrutinize any change in this area.
src/Helper/AbstractHtmlElement.php: 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.

Cross-Site Scripting (XSS): HTML element and navigation menu helpers utilized generic HTML escaping instead of context-aware HTML attribute escaping, which allowed malicious inputs to break out of attribute boundaries and execute arbitrary scripts. Developers should consistently use explicit attribute-context escaping helpers for all dynamic attributes.
Information Disclosure: Automatic JSON/JSONP content negotiation based directly on the client HTTP Accept header could trigger unintended serialization and disclosure of internal view-model variables. Removing or strictly gating automatic content-type negotiation protects sensitive view data from arbitrary extraction.