Improper handling of CSS at-rules in lettersanitizer
Impact
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.
Patches
The problem has been patched in version 1.0.2.
Workarounds
There is no workaround besides upgrading.
References
The issue was originally reported in the react-letter repository: https://github.com/mat-sz/react-letter/issues/17
For more information
If you have any questions or comments about this advisory:
- Open an issue in lettersanitizer
- Email me at contact@matsz.dev
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | lettersanitizer | < 1.0.2 | 1.0.2 |
References
- https://github.com/mat-sz/lettersanitizer/security/advisories/GHSA-7r3r-gq8p-v9jj
- https://nvd.nist.gov/vuln/detail/CVE-2022-31103
- https://github.com/mat-sz/react-letter/issues/17
- https://github.com/mat-sz/lettersanitizer/commit/96d3dfe2ef0465d47324ed4d13e91ba0816a173f
- https://github.com/mat-sz/lettersanitizer
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Weakness (CWE)
CWE-754- Platform
- npm
- Package
lettersanitizer- Disclosed
- 23.06.2022
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-7r3r-gq8p-v9jj - CC BY 4.0
Vulnerability history: lettersanitizer
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.