CVE-2020-11070: T3g/svg sanitizer Cross-Site Scripting Vulnerability
MODERATECVE-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
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).
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.
Upgrade t3g/svg-sanitizer to 1.0.3
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
CVE-2020-11070 Affected T3g/svg sanitizer Versions
1 component(s)| 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?
Which T3g/svg sanitizer versions are affected?
What version fixes CVE-2020-11070?
Is t3g/svg-sanitizer affected?
What is the CVSS score of CVE-2020-11070?
What CWE is associated with CVE-2020-11070?
How can I check Packagist dependencies for CVE-2020-11070?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}