Advisory record · GHSA-gf8j-v8x5-h9qp

XSS in enshrined/svg-sanitize due to mishandled script and data values in attributes

CVSS 7.5 HighEPSS 0.010 · 63rd percentile

Published by the GitHub Advisory Database at 8 Jan 2020, 17:15 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
enshrined/svg-sanitizePackagist<0.12.00.12.0
Identifiers
GHSA-gf8j-v8x5-h9qp · CVE-2019-18857 · PKSA-kv5d-dmjs-n5mp
Weakness (CWE)
CWE-79
Published
8 Jan 2020
Updated
8 Nov 2023

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

enshrined/svg-sanitize versions before 0.12.0 mishandle script and data values in attributes, so crafted whitespace inside values such as a javascript URL can get past the sanitizer. An attacker who can supply an SVG file to be sanitized could have script run in the context of the page that displays it. Upgrade to version 0.12.0 or later. The source gives few details beyond this example.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.5 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS 0.010, the 63rd percentile, on 28 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:33 UTC First seen by agentprime
  2. 31 Oct 2026, 14:33 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.