Vulnerability GHSA-mmhx-hmjr-r674
High Risk
HIGH RISK
CVSS Score: 7.0
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
2 years ago
September 16, 2024 at 08:34 PM UTC
DOMPurify allows tampering by prototype pollution
<2.5.4, >=3.0.0 <3.1.3
<2.5.4, >=3.0.0 <3.1.3
Summary
DOMPurify allows tampering by prototype pollution
Details
It has been discovered that malicious HTML using special nesting techniques can bypass the depth checking added to DOMPurify in recent releases. It was also possible to use Prototype Pollution to weaken the depth check.
This renders dompurify unable to avoid XSS attack.
Fixed by https://github.com/cure53/DOMPurify/commit/1e520262bf4c66b5efda49e2316d6d1246ca7b21 (3.x branch) and https://github.com/cure53/DOMPurify/commit/26e1d69ca7f769f5c558619d644d90dd8bf26ebc (2.x branch).
Related Vulnerabilities
Other vulnerabilities affecting the same packages
Low Risk
1 month ago
DOMPurify SAFE_FOR_TEMPLATES bypass: split template expressions survive in attached shadow root content on DOM output modes
>=3.4.4 <3.4.17 GHSA-cg2g-xh64-v4q7
>=3.4.4 <3.4.17 GHSA-cg2g-xh64-v4q7
Low Risk
1 month ago
DOMPurify IN_PLACE: hook that removes a parent or sibling leaves the detached subtree's event handlers armed (incomplete fix for GHSA-p98j-92pf-mc4p)
<3.4.17 GHSA-mrv2-3pqr-j5jr
<3.4.17 GHSA-mrv2-3pqr-j5jr
Low Risk
1 month ago
DOMPurify: SMIL attributeName=href guard is skipped when PARSER_MEDIA_TYPE is application/xhtml+xml
<3.4.17 GHSA-c6gr-qvv4-5v3f
<3.4.17 GHSA-c6gr-qvv4-5v3f
Low Risk
1 month ago
DOMPurify: IN_PLACE returns a force-removed rawtext root whose text carries attacker markup — pure HTML reparse executes
<3.4.16 GHSA-6688-9rhm-gjv2
<3.4.16 GHSA-6688-9rhm-gjv2
Low Risk
2 months ago
DOMPurify: IN_PLACE: node-removing afterSanitize hook leaves detached subtree event handlers armed, causing DOM XSS
>=3.4.13 <3.4.16 GHSA-p98j-92pf-mc4p
>=3.4.13 <3.4.16 GHSA-p98j-92pf-mc4p
Impacted packages
Timeline
Published
2 years ago
September 16, 2024 at 08:34 PM UTC
Fixed (3.1.3)
2 years ago
May 11, 2024 at 10:25 AM UTC
Fixed (2.5.4)
2 years ago
May 20, 2024 at 11:09 AM UTC
Last Modified
2 days ago
November 27, 2026 at 03:45 PM UTC