CVE-2020-11070: T3g/svg sanitizer Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-59cf-m7v5-wh5w
CVSS 5.4
CWE-79
Published
Advisory Summary

CVE-2020-11070 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting T3g/svg sanitizer libraries in the Packagist ecosystem. The issue involves cross-site scripting in svg sanitizer. Remediation is available by upgrading affected packages to version 1.0.3.

CVE-2020-11070 at a Glance

CVE Identifier CVE-2020-11070
GHSA Identifier GHSA-59cf-m7v5-wh5w
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product T3g/svg sanitizer
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2020-11070

To remediate this vulnerability, upgrade all affected T3g/svg sanitizer dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

t3g/svg-sanitizer fixed: 1.0.3
Upgrade t3g/svg-sanitizer to 1.0.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for t3g/svg-sanitizer

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-11070, inspect your project dependencies for T3g/svg sanitizer:

inspect dependencies for t3g/svg-sanitizer

Analyze the terminal output to locate any version of T3g/svg sanitizer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In T3g/svg sanitizer, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Slightly invalid or incomplete SVG markup is not correctly processed and thus not sanitized at all. Albeit the markup is not valid it still is evaluated in browsers and leads to cross-site scripting. An updated version 1.0.3 is available from the TYPo3 extension manager and at https://extensions.typo3.org/extension/download/svg_sanitizer/1.0.3/zip/ Users of the extension are advised to update the extension as soon as possible.

CVE-2020-11070 Affected T3g/svg sanitizer Versions

1 component(s)
Fixed Versions:
1.0.3
Product / Package Ecosystem Affected Versions Fixed Version
t3g/svg-sanitizer
Packagist
< 1.0.3
1.0.3

References

Frequently Asked Questions

What is CVE-2020-11070?
CVE-2020-11070 is a security vulnerability in T3g/svg sanitizer involving Cross-Site Scripting in SVG Sanitizer under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which T3g/svg sanitizer versions are affected?
Affected versions include releases prior to 1.0.3 across affected packages: t3g/svg-sanitizer.
What version fixes CVE-2020-11070?
Upgrading to 1.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is t3g/svg-sanitizer affected?
Yes, t3g/svg-sanitizer is affected in releases prior to 1.0.3. Upgrade your dependency to 1.0.3 or later.
What is the CVSS score of CVE-2020-11070?
CVE-2020-11070 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2020-11070?
CVE-2020-11070 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for CVE-2020-11070?
Run the dependency tree command: 'inspect dependencies for t3g/svg-sanitizer'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-59cf-m7v5-wh5w",
  "modified" : "2021-01-08T20:16:29Z",
  "published" : "2020-05-13T22:17:34Z",
  "aliases" : [ "CVE-2020-11070" ],
  "summary" : "Cross-Site Scripting in SVG Sanitizer",
  "details" : "Slightly invalid or incomplete SVG markup is not correctly processed and thus not sanitized at all. Albeit the markup is not valid it still is evaluated in browsers and leads to cross-site scripting.\n\nAn updated version 1.0.3 is available from the TYPo3 extension manager and at https://extensions.typo3.org/extension/download/svg_sanitizer/1.0.3/zip/\nUsers of the extension are advised to update the extension as soon as possible.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "t3g/svg-sanitizer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/TYPO3GmbH/svg_sanitizer/security/advisories/GHSA-59cf-m7v5-wh5w"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-11070"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-05-13T18:39:24Z",
    "nvd_published_at" : null
  }
}