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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.5%top 25.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
npmlettersanitizer1.0.2GHSA-7r3r-gq8p-v9jj

Affected products (as reported)

VendorProductVersions
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

References