Security mailing lists by PureSourceCode

CVE-2026-140391

MEDIUM 5.1CVSS 4.0

DOMPurify before 3.4.18 SAFE_FOR_TEMPLATES Bypass Leading to XSS

DOMPurify before 3.4.18 contains a SAFE_FOR_TEMPLATES bypass that allows attackers to smuggle template expressions past sanitization using nested form elements or orphaned end tags. When the sanitized output is reparsed via innerHTML, split braces merge into live {{...}} expressions that Vue or AngularJS evaluate, executing attacker JavaScript in victims' browsers.

Published
1 Dec 2026
Last modified
3 Dec 2026
Assigned by
disclosure@vulncheck.com
NVD status
Received
Weakness
CWE-1336CWE-79
Also known as
GHSA-qm7q-q8h9-jg8q
Sources
NVDJSONCVE ListJSONOSV GHSA-qm7q-q8h9-jg8qJSON

Scores

SourceScored byVersionScoreVector / decision
NVD disclosure@vulncheck.com (Secondary) CVSS 4.0 MEDIUM 5.1 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVE List VulnCheck CVSS 4.0 MEDIUM 5.1 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
NVD disclosure@vulncheck.com (Secondary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVE List VulnCheck CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVE List CISA-ADP SSVC Exploitation: poc; Automatable: no; Technical Impact: partial

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List cure53 DOMPurify < 3.4.18 3.4.18
OSV npm dompurify < 3.4.18 3.4.18

References

History

  • 3 Dec 2026 19:56 UTC · OSV: first stored (published 3 Dec 2026)
  • 1 Dec 2026 22:45 UTC · NVD: 1 reference added
  • 1 Dec 2026 22:15 UTC · CVE List: updated (other details)
  • 1 Dec 2026 15:31 UTC · NVD: first stored (published 1 Dec 2026)
  • 1 Dec 2026 14:38 UTC · CVE List: first stored (published 1 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.