Vulnerability · Published Jun 27, 2022 · Assigned by GitHub_M
CVE-2022-31103Improper handling of CSS at-rules in lettersanitizer
High 7.5
In plain English
A high-severity security flaw in lettersanitizer from mat-sz. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
lettersanitizer is a DOM-based HTML email sanitizer for in-browser email rendering. All versions of lettersanitizer below 1.0.2 are affected by a denial of service issue when processing a CSS at-rule `@keyframes`. This package is depended on by [react-letter](https://github.com/mat-sz/react-letter), therefore everyone using react-letter is also at risk. The problem has been patched in version 1.0.2.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | lettersanitizer | 1.0.2 | GHSA-7r3r-gq8p-v9jj |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| mat-sz | lettersanitizer | < 1.0.2 |
Weakness: CWE-754 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H