Skip to main content

sanitize-html CVE-2026-113657

| EUVDEUVD-2026-105186 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-10-20 GitHub_M GHSA-374f-7chj-9948
3.7
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticated actor submits crafted SVG content
  2. Delivery
    Prefixed animation tag bypasses SMIL URL check
  3. Exploit
    Sanitized SVG rendered to victim
  4. Execution
    Victim activates rewritten link
  5. Impact
    Script executes in victim browser session

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a non-default sanitize-html configuration that explicitly permits namespace-prefixed SVG animation elements (e.g. prefixed <animate>/<set>-style tags) together with the relevant URL-targeting attributes; the description states the default sanitizer configuration is not unconditionally affected. A second hard limit is user interaction (UI:R): the injected SVG only rewrites a link destination to an unsafe URI, and script execution occurs only when a victim actually activates (clicks) that link. The attacker also needs the ability to submit HTML/SVG content that passes through the sanitizer (PR:L in the vector). These stacked prerequisites - non-default allow-list, content-submission access, and victim click - substantially constrain realistic exploitation.

Impact

This is a genuinely low-priority issue, and the signals are internally consistent rather than conflicting. The CVSS 3.1 base score of 3.7 (Low) reflects a hard-to-exploit XSS: AV:N (web-delivered content) but AC:H (requires a non-default sanitizer configuration), PR:L (an authenticated/content-submitting actor), UI:R (a victim must activate the malicious link), S:U, and only C:L/I:L/A:N impact. No EPSS probability was supplied in the input, so exploitation likelihood cannot be quantified from this data. The vulnerability is NOT on the CISA KEV list and no POC/exploit code is referenced, so there is no public exploit identified at time of analysis. The combined picture - low technical impact, two independent limiting conditions (non-default config AND user interaction), and no evidence of exploitation - means this is a defense-in-depth fix rather than an urgent patch priority. The one caveat is reach: sanitize-html is an extremely widely depended-upon npm sanitizer, so while any single deployment is low-risk, the affected library's footprint is large; teams running the vulnerable 2.17.7-2.17.x range with the specific SVG-animation allowances enabled should still patch to 2.18.0.

Exploit ScenarioDerived

In an ApostropheCMS/sanitize-html deployment whose configuration has been customized to permit namespace-prefixed SVG animation elements and their URL-targeting attributes, an attacker with the ability to submit content crafts an SVG whose prefixed animation tag evades the unprefixed SMIL animation-element check. The sanitizer passes it through, and after rendering the animation rewrites a link's destination to an unsafe (e.g. javascript:) URI, so script executes when a victim clicks the affected link. No public exploit code is referenced in the available data.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 20, 2026

sanitize-html 2.17.7 and later before 2.18.0 can bypass SMIL URL protection when an application opts into a non-default allow-list that permits namespace-prefixed SVG animation elements plus URL-targeting attributes. The prefixed animation tags do not match the library's unprefixed animation-element check, so a sanitized SVG can rewrite a link destination to an unsafe URI and execute script if a user activates that link. The default configuration is not unconditionally affected, exploitation requires content-submission access and a victim click, and the issue is fixed in sanitize-html 2.18.0; no public exploit code was identified at time of analysis.

RemediationAI

Upgrade sanitize-html to 2.18.0, the vendor-released patch, using the release at https://github.com/apostrophecms/apostrophe/releases/tag/sanitize-html@2.18.0, and update ApostropheCMS deployments to a release that pins the fixed sanitize-html version; see advisory https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-374f-7chj-9948. If upgrading cannot be done immediately, remove namespace-prefixed SVG animation elements (for example prefixed animate and set tags) and URL-targeting attributes such as href and xlink:href from the sanitizer allow-list, or disallow SVG animation content entirely; the trade-off is loss of animated SVG functionality in sanitized content. Restricting who can submit raw HTML or SVG reduces exposure but does not replace the patch, because any accepted content still passes through the vulnerable sanitizer configuration.

Affected VersionsENISA

sanitize-html 2.17.7, < 2.18.0
Apostrophe < 4.33.0

Affected Packages

npm sanitize-html fix: 2.18.0
euvd apostrophe fix: 4.33.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

sanitize-html is a Node.js HTML sanitizer used to strip unsafe markup from untrusted content. This is a CWE-79 cross-site scripting issue rooted in how SVG SMIL animation elements are inspected: the sanitizer's URL protection looks for unprefixed animation-element names, but namespace-prefixed SVG animation tags can pass through when the application's sanitizer configuration explicitly allows them. Those animation elements can target URL-bearing attributes on links and alter the destination after the sanitized SVG is rendered, creating a script-execution path when the victim clicks the affected link. The CVSS vector AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N reflects a remotely reachable, high-complexity issue requiring some content-submission capability and user interaction, with limited confidentiality and integrity impact. CPE data identifies both the sanitize-html package and ApostropheCMS as affected products; the vulnerability is in the sanitizer library, and ApostropheCMS deployments are exposed where they rely on the vulnerable sanitize-html version and use a permissive non-default SVG configuration.

Know when Apostrophecms gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 3.7 LOW
AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
vuln.today AI 3.7 LOW

AC:H because a non-default SVG-animation allow-list is required, PR:L for a content-submitting actor, UI:R since the victim must click the rewritten link; limited C/I and no availability impact.

3.1 AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Oct 20, 2026 - 18:17 EUVD
CVE Published
Oct 20, 2026 - 16:54 cve.org
LOW 3.7

DescriptionCVE.org

ApostropheCMS is an open-source Node.js content management system, and sanitize-html provides a simple HTML sanitizer with a clear API. From sanitize-html 2.17.7 until 2.18.0, an application configuration that permits namespace-prefixed SVG animation elements and the relevant URL-targeting attributes can bypass the SMIL URL protection because prefixed tag names do not match the unprefixed animation-element check. The bypass can rewrite a link destination to an unsafe URI after the sanitized SVG is rendered, with script execution occurring when a user activates the affected link; the default sanitizer configuration is not unconditionally affected. This issue is fixed in sanitize-html 2.18.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
High
sanitize-html is a very widely used Node.js HTML sanitizer dependency
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

18
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +18
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2026-63669 MEDIUM POC
6.5 Aug 17

Integrity bypass in ApostropheCMS page management allows authenticated low-privileged editors to move pages into restric

CVE-2026-63670 MEDIUM POC
6.1 Aug 17

Stored cross-site scripting in ApostropheCMS prior to 2.17.6 enables execution of arbitrary JavaScript in victim browser

CVE-2014-125128 MEDIUM POC
6.1 Sep 08

'sanitize-html' prior to version 1.0.3 is vulnerable to Cross-site Scripting (XSS). Rated medium severity (CVSS 6.1), th

CVE-2019-25225 MEDIUM POC
6.1 Sep 08

`sanitize-html` prior to version 2.0.0-beta is vulnerable to Cross-site Scripting (XSS). Rated medium severity (CVSS 6.1

CVE-2021-25979 CRITICAL
9.8 Nov 08

Apostrophe CMS versions prior to 3.3.1 did not invalidate existing login sessions when disabling a user account or chang

CVE-2026-84371 MEDIUM POC
5.4 Sep 01

Stored XSS in sanitize-html versions 1.9.0 through 2.17.6 allows authenticated low-privileged users to inject executable

CVE-2024-21501 MEDIUM POC
5.3 Feb 24

Versions of the package sanitize-html before 2.12.1 are vulnerable to Information Exposure when used on the backend and

CVE-2021-26540 MEDIUM POC
5.3 Feb 08

Apostrophe Technologies sanitize-html before 2.3.2 does not properly validate the hostnames set by the "allowedIframeHos

CVE-2021-26539 MEDIUM POC
5.3 Feb 08

Apostrophe Technologies sanitize-html before 2.3.1 does not properly handle internationalized domain name (IDN) which co

CVE-2026-53609 CRITICAL
9.1 Jun 12

Prototype pollution in ApostropheCMS versions up to and including 4.30.0 allows an authenticated editor to poison Object

CVE-2026-53608 HIGH
8.7 Jun 12

Stored cross-site scripting in the @apostrophecms/seo plugin (versions ≤1.4.2) allows any user holding the default edito

CVE-2026-35569 HIGH
8.7 Apr 15

Stored cross-site scripting in ApostropheCMS SEO fields permits an authenticated attacker to inject arbitrary JavaScript

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy