GHSA-j977-g5vj-j27g

Suggest an improvement
Source
https://github.com/advisories/GHSA-j977-g5vj-j27g
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/11/GHSA-j977-g5vj-j27g/GHSA-j977-g5vj-j27g.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-j977-g5vj-j27g
Aliases
Published
2020-11-09T14:21:17Z
Modified
2026-09-10T03:48:35Z
Severity
  • 9.6 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Cross-Site Scripting in scratch-svg-renderer
Details

This affects the package scratch-svg-renderer before 0.2.0-prerelease.20201019174008. The loadString function does not escape SVG properly, which can be used to inject arbitrary elements into the DOM via the _transformMeasurements function.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-11-09T14:09:20Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / scratch-svg-renderer

Package

Name
scratch-svg-renderer
View open source insights on deps.dev
Purl
pkg:npm/scratch-svg-renderer

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.2.0-prerelease.20201019174008

Database specific

last_known_affected_version_range
"<= 0.2.0-prerelease.20201016121710"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/11/GHSA-j977-g5vj-j27g/GHSA-j977-g5vj-j27g.json"