CVE-2022-31103
HIGH 7.5CVSS 3.1Improper handling of CSS at-rules in lettersanitizer
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, therefore everyone using react-letter is also at risk. The problem has been patched in version 1.0.2.
- Published
- 27 Jun 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-754
- Also known as
- GHSA-7r3r-gq8p-v9jj
- Sources
- NVDJSONOSV GHSA-7r3r-gq8p-v9jjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | lettersanitizer_project | lettersanitizercpe:2.3:a:lettersanitizer_project:lettersanitizer:*:*:*:*:*:node.js:*:* |
< 1.0.2 | 1.0.2 |
| OSV | npm | lettersanitizer | < 1.0.2 | 1.0.2 |
References
- https://github.com/mat-sz/lettersanitizer/commit/96d3dfe2ef0465d47324ed4d13e91ba0816a173f · Patch, Third Party Advisory, WEB
- https://github.com/mat-sz/lettersanitizer/security/advisories/GHSA-7r3r-gq8p-v9jj · Third Party Advisory, WEB
- https://github.com/mat-sz/react-letter/issues/17 · Issue Tracking, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31103 · ADVISORY
- https://github.com/mat-sz/lettersanitizer · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 27 Jun 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 23 Jun 2022)