GHSA-gwpm-pm6x-h7rj: ZendFramework Cross-site Scripting vector in `Zend_Filter_StripTags`
6.1
CVSS Score
3.1
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
6/7/2024
Updated
6/7/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| zendframework/zendframework1 | composer | >= 1.7.0, < 1.7.6 | 1.7.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from how Zend_Filter_StripTags processes HTML attributes. The _validateAttributes method is responsible for checking allowed attributes using regular expressions that didn't account for whitespace/newlines around attribute assignment operators. This allowed malicious attributes like 'onclick' with line breaks around the '=' to bypass the whitelist check. The advisory specifically references attribute whitelisting functionality in this class as the vulnerable component, and the patched version (1.7.6) would have modified this validation logic.