Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. enshrined/svg-sanitize
  4. ›
  5. CVE-2019-18857

CVE-2019-18857: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

January 8, 2020 (updated August 19, 2021)

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.

References

  • github.com/advisories/GHSA-gf8j-v8x5-h9qp
  • github.com/darylldoyle/svg-sanitizer/commit/51ca4b713f3706d6b27769c6296bbc0c28a5bbd0
  • github.com/darylldoyle/svg-sanitizer/compare/0.11.0...0.12.0
  • nvd.nist.gov/vuln/detail/CVE-2019-18857

Code Behaviors & Features

Detect and mitigate CVE-2019-18857 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.12.0

Fixed versions

  • 0.12.0

Solution

Upgrade to version 0.12.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/enshrined/svg-sanitize/CVE-2019-18857.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:07 +0000.