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.
Remediation
References
https://snyk.io/vuln/SNYK-JS-SCRATCHSVGRENDERER-1020497
https://github.com/LLK/scratch-svg-renderer/commit/9ebf57588aa596c4fa3bb64209e10ade395aee90
Related Vulnerabilities
CVE-2023-37903 Vulnerability in npm package vm2
CVE-2022-23496 Vulnerability in maven package nl.basjes.parse.useragent:yauaa-beam-sql
CVE-2018-14042 Vulnerability in maven package org.webjars.bower:bootstrap-sass
CVE-2018-3746 Vulnerability in npm package pdfinfojs
CVE-2022-25883 Vulnerability in maven package org.webjars.npm:semver