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://github.com/LLK/scratch-svg-renderer/commit/9ebf57588aa596c4fa3bb64209e10ade395aee90
https://snyk.io/vuln/SNYK-JS-SCRATCHSVGRENDERER-1020497
Related Vulnerabilities
CVE-2023-26492 Vulnerability in npm package directus
CVE-2023-3691 Vulnerability in maven package org.webjars.npm:github-com-layui-layui
CVE-2023-41049 Vulnerability in npm package @dcl/single-sign-on-client
CVE-2022-25921 Vulnerability in npm package morgan-json
CVE-2022-29237 Vulnerability in maven package org.opencastproject:opencast-ingest-service-impl