Skip to content

Cross-Site Scripting in scratch-svg-renderer

High severity GitHub Reviewed Published Nov 9, 2020 to the GitHub Advisory Database • Updated Jan 9, 2023

Package

npm scratch-svg-renderer (npm)

Affected versions

<= 0.2.0-prerelease.20201016121710

Patched versions

0.2.0-prerelease.20201019174008

Description

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.

References

Reviewed Nov 9, 2020
Published to the GitHub Advisory Database Nov 9, 2020
Last updated Jan 9, 2023

Severity

High

EPSS score

Exploit Prediction Scoring System (EPSS)

This score estimates the probability of this vulnerability being exploited within the next 30 days. Data provided by FIRST.
(91st percentile)

Weaknesses

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

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. Learn more on MITRE.

CVE ID

CVE-2020-7750

GHSA ID

GHSA-j977-g5vj-j27g

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.