GitHub Advisoryadvisory · npm
GHSA-7r3r-gq8p-v9jj Improper handling of CSS at-rules in lettersanitizer
HIGH
Official page ↗
- Aliases
- CVE-2022-31103
- Ecosystem
- npm
- Packages
- lettersanitizer
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-754
- Reviewed
- 2022-06-23
Affected packages
• npm lettersanitizer: < 1.0.2 → fixed in 1.0.2
Description
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 [email protected]
Related
Alias · CVE (1)
- CVE-2022-31103 lettersanitizer is a DOM-based HTML email sanitizer for in-browser email rendering. vulnerability
Weakness · CWE (1)
- CWE-754 Improper Check for Unusual or Exceptional Conditions weakness
References
- https://github.com/mat-sz/lettersanitizer/security/advisories/GHSA-7r3r-gq8p-v9jj web
- https://nvd.nist.gov/vuln/detail/CVE-2022-31103 advisory
- https://github.com/mat-sz/react-letter/issues/17 web
- https://github.com/mat-sz/lettersanitizer/commit/96d3dfe2ef0465d47324ed4d13e91ba0816a173f web
- https://github.com/mat-sz/lettersanitizer package