GHSA-gf8j-v8x5-h9qp

Suggest an improvement
Source
https://github.com/advisories/GHSA-gf8j-v8x5-h9qp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/01/GHSA-gf8j-v8x5-h9qp/GHSA-gf8j-v8x5-h9qp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gf8j-v8x5-h9qp
Aliases
Published
2020-01-08T17:15:37Z
Modified
2023-11-08T04:01:26.579900Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
XSS in enshrined/svg-sanitize due to mishandled script and data values in attributes
Details

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

Database specific
{
    "nvd_published_at": null,
    "github_reviewed_at": "2020-01-08T17:15:04Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-79"
    ]
}
References

Affected packages

Packagist / enshrined/svg-sanitize

Package

Name
enshrined/svg-sanitize
Purl
pkg:composer/enshrined/svg-sanitize

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.12.0

Affected versions

0.*

0.1.0
0.1.1
0.1.2
0.1.3
0.1.4
0.1.5
0.1.6
0.2.0
0.2.1
0.3.0
0.4.0
0.4.1
0.5.0
0.5.1
0.5.2
0.5.3
0.5.3.1
0.6.0
0.7.0
0.7.1
0.7.2
0.8.0
0.8.1
0.8.2
0.9.0
0.9.1
0.9.2
0.10.0
0.11.0