CVE-2022-31103 Improper handling of CSS at-rules in lettersanitizer
Attackers can cause a denial of service in applications using lettersanitizer by sending emails with specific CSS at-rules.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-31103?
CVE-2022-31103 is a high-severity denial of service vulnerability in mat-sz lettersanitizer, published on 27 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
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.
Weakness: CWE-754
Which versions are affected by CVE-2022-31103?
2 open source packages ship an affected version, including lettersanitizer. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
lettersanitizer npm | All versions | 1.0.2 |
lettersanitizer npm | All versions | 1.0.2 |
Products include Lettersanitizer Project Lettersanitizer.
How do I fix CVE-2022-31103?
Upgrade lettersanitizer to 1.0.2 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-31103 being exploited?
There is no known exploitation of CVE-2022-31103 in the wild and no public exploit code.
Sources
Also known as GHSA-7r3r-gq8p-v9jj.