Advisory

GHSA-j977-g5vj-j27g

Also known as: CVE-2020-7750, SNYK-JS-SCRATCHSVGRENDERER-1020497

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-11-09 14:21 UTC
Modified
2026-09-10 03:48 UTC

Affected packages and fixes

scratch-svg-renderer

npm · All systems

Affected

  • introduced 0, fixed 0.2.0-prerelease.20201019174008 (semver)

Fixed versions

0.2.0-prerelease.20201019174008

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences