CVE-2020-7750

Cross-site Scripting (XSS)

Critical ยท published October 21, 2020

CVSS v3.1
9.6
EPSS
6%
Percentile
93.4
In the wild
Unconfirmed
What it is

๐Ÿ”ฅ An unescaped SVG could let an attacker inject anything into your DOM! Think of it like a sneaky chef who can swap out ingredients in your dish without you noticing โ€” they could literally add anything they want! An attacker could exploit this vulnerability to inject arbitrary elements, effectively taking control of your web application's interface. This means they could manipulate the display, steal data, or even execute malicious scripts โ€” absolutely devastating consequences! ๐Ÿšจ

Put simply

Think of it like a sneaky chef who can swap out ingredients in your dish without you noticing โ€” they could literally add anything they want! The issue lies in the loadString function of scratch-svg-renderer before version 0.2.0-prerelease.20201019174008, where it fails to escape SVG properly, allowing attackers to inject malicious elements through the _transformMeasurements function.

What to do

An attacker could exploit this vulnerability to inject arbitrary elements, effectively taking control of your web application's interface. This means they could manipulate the display, steal data, or even execute malicious scripts โ€” absolutely devastating consequences! ๐Ÿšจ To protect your application, upgrade to scratch-svg-renderer version 0.2.0-prerelease.20201019174008 or later immediately. Also, ensure you're properly validating and sanitizing any SVG inputs to further enhance security. ๐Ÿ›ก๏ธ You've got this! Follow these steps and you'll have your application secured in no time! ๐Ÿ’ช

The record
Technical detail
CVSS v3.1
9.6 ยท CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.06125 ยท 93.4th percentile
Published
2020-10-21T16:20Z
EPSS history
Timeline
  • 21 OCT 16:20Z
    Cross-site Scripting (XSS)
    cvelistv5