{"id":"CVE-2022-31103","published":"2022-06-27T22:20:16Z","modified":"2025-04-23T18:06:15Z","title":"Improper handling of CSS at-rules in lettersanitizer","vendor":"mat-sz","product":"lettersanitizer","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0155,"percentile":0.75696,"provenance":"source"},"cwes":[{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"}],"references":[{"url":"https://github.com/mat-sz/lettersanitizer/security/advisories/GHSA-7r3r-gq8p-v9jj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mat-sz/react-letter/issues/17","tags":["x_refsource_MISC"]},{"url":"https://github.com/mat-sz/lettersanitizer/commit/96d3dfe2ef0465d47324ed4d13e91ba0816a173f","tags":["x_refsource_MISC"]}],"priority":{"score":20.4,"factors":[{"name":"EPSS percentile","points":15.14},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"mat-sz","affectedVersions":[{"vendor":"mat-sz","product":"lettersanitizer","versions":["< 1.0.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:53:47.540917Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"lettersanitizer","vulnerableRanges":["<1.0.2"],"patched":["1.0.2"],"from":["GHSA-7r3r-gq8p-v9jj"],"provenance":"source"}],"summary":{"text":"The lettersanitizer package, a DOM-based HTML email sanitizer used for in-browser email rendering, mishandles the CSS at-rule @keyframes, a flaw that affects versions below 1.0.2 and also reaches applications built on react-letter, which depends on it. An attacker who can supply email content for the sanitizer to process, requiring no authentication, no user interaction and only network reachability to the victim, can trigger a denial of service against the rendering context.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:01Z"},"euvd":{"id":"EUVD-2022-5983","exploited":false,"provenance":"source"}}