GHSA-4vf6-mq7w-3hp6: Zend_Filter_StripTags vulnerable to Cross-site Scripting when comments allowed
Noroxi assessment
Priority: Monitor (action score 24/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Anyone who can reach it over the internet can trigger it. No account or password is required. A user must open a link or visit a page. No special conditions are required; it is repeatable.
- Fixed version: zendframework/zendframework1 (Packagist) 1.7.9, 1.8.5, 1.9.7.
Low priority for now. Upgrade to zendframework/zendframework1 (Packagist) 1.7.9, 1.8.5, 1.9.7 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: OSV
Zend_Filter_StripTags contained an optional setting to allow whitelisting HTML comments in filtered text. Microsoft Internet Explorer and several other browsers allow developers to create conditional functionality via HTML comments, including execution of script events and rendering of additional commented markup. By allowing whitelisting of HTML comments, a malicious user could potentially include XSS exploits within HTML comments that would then be rendered in the final output.
- Published
- Jun 7, 2024
- Updated
- Jun 7, 2024
- EPSS
- —
- CWE
- CWE-79
Report tools
Action score
24
Low priority for now.
- CVSS
- 24 / 40 · 6.1 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · —
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Limit the impact of XSSCheck security headers
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| Packagist | zendframework/zendframework1 | pkg:composer/zendframework/zendframework1 |
Limit the impact of XSS
This is a cross-site scripting (XSS) vulnerability. A well-configured Content-Security-Policy doesn't fix it, but greatly reduces its impact. Check your site's CSP and other security headers for free.
Check security headersPackage-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Packagist | zendframework/zendframework1 | from 1.7.0 · before 1.7.9 | 1.7.9 |
| Packagist | zendframework/zendframework1 | from 1.8.0 · before 1.8.5 | 1.8.5 |
| Packagist | zendframework/zendframework1 | from 1.9.0 · before 1.9.7 | 1.9.7 |
Same product
Packagist: all recordsOther highest-scoring records for the same primary product.
- GHSA-6fqw-j3vm-7f66Zendframework1 Potential SQL injection in ORDER and GROUP functions39Monitor
- GHSA-v42g-7q2x-cw32Zendframework1 potential SQL injection vector using null byte for PDO (MsSql, SQLite)39Monitor
- GHSA-2x36-qhx3-7m5fZendFramework1 Potential SQL injection in the ORDER implementation of Zend_Db_Select39Monitor
Published before and after this one in the same product
- ← EarlierGHSA-vvm3-rv48-j3g5Jun 7, 2024 · Zendframework Potential XSS or HTML Injection vector in Zend_Json24Monitor
- ← EarlierGHSA-4v57-pwvf-x35jJun 7, 2024 · Zendframework potential Cross-site Scripting vector in `Zend_Service_ReCaptcha_MailHide`24Monitor
- Later →GHSA-9v78-h226-2rmqJun 7, 2024 · Zendframework potential security issue in login mechanism30Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Packagist:zendframework/zendframework1 | 1.7.9 | Package registry (OSV) |
| Packagist:zendframework/zendframework1 | 1.8.5 | Package registry (OSV) |
| Packagist:zendframework/zendframework1 | 1.9.7 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
- GHSA-4v57-pwvf-x35j0 days apartZendframework potential Cross-site Scripting vector in `Zend_Service_ReCaptcha_MailHide`24Monitor
- GHSA-g52p-86j5-xr8q0 days apartZendFramework Potential Cross-site Scripting in Development Environment Error View Script24Monitor
- GHSA-gwpm-pm6x-h7rj0 days apartZendFramework Cross-site Scripting vector in `Zend_Filter_StripTags`24Monitor
- GHSA-hg35-vqp3-fv390 days apartZendFramework potential Cross-site Scripting vectors due to inconsistent encodings24Monitor
- GHSA-j543-vg33-g6vj0 days apartZendFramework potential Cross-site Scripting vector in `Zend_Dojo_View_Helper_Editor`24Monitor
- GHSA-vvm3-rv48-j3g50 days apartZendframework Potential XSS or HTML Injection vector in Zend_Json24Monitor
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- low · data can be read
- Integrity
- low · data or configuration can be modified
- Availability
- none
Impact can extend beyond the vulnerable component (scope changes).
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality impact
- Low
- Integrity impact
- Low
- Availability impact
- None
Weakness class (CWE)
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
osv
Root cause
User content is inserted into the page as HTML. The browser interprets the content as code rather than data.
The bug in code
The whole CWE-79 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
commentEl.innerHTML = comment.body;Fixed
commentEl.textContent = comment.body;Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (2 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.