Live threats

All CVEs / Svg-sanitizer Project

CVE-2019-18857Svg-sanitizer Project Svg-sanitizer

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.0%
probability of exploitation in 30 days · percentile 65
Auth required
No
Published
Nov 11, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

darylldoyle svg-sanitizer before 0.12.0 mishandles script and data values in attributes, as demonstrated by unexpected whitespace such as in the javascript	:alert substring.

Original NVD text.

What to do

  1. Apply the vendor's security update for Svg-sanitizer.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist enshrined/svg-sanitize < 0.12.0 0.12.0 composer require "enshrined/svg-sanitize:^0.12.0"

Per OSV / GitHub Advisories (GHSA-gf8j-v8x5-h9qp). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
svg-sanitizer_projectsvg-sanitizer< 0.12.0

Official sources

References

Links published by the sources. Open them with care.