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.test.osv.dev/v1/vulns/GHSA-j977-g5vj-j27g
Aliases
Published
2020-11-09T14:21:17Z
Modified
2025-01-08T07:43:55.943688Z
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
{
    "nvd_published_at": null,
    "github_reviewed_at": "2020-11-09T14:09:20Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-79"
    ]
}
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
0Unknown 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"
}