LiveActive security incident?Get immediate response
CVE Record

CVE-2022-31103: Improper 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](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.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2022-31103 can make browser-based email rendering fail or hang when vulnerable lettersanitizer versions process certain CSS at-rules. The impact is availability, not data theft or code execution based on the supplied sources. Organizations using lettersanitizer below 1.0.2, including via react-letter, should update promptly.

Executive priority

Patch in the next normal security release cycle, faster for customer-facing email viewers or support tools. The business risk is service disruption from crafted content, not confirmed compromise. Because the fix is a version upgrade, remediation should be low complexity for most teams.

Technical view

lettersanitizer, a DOM-based HTML email sanitizer for in-browser rendering, mishandles CSS @keyframes at-rules. Versions below 1.0.2 are vulnerable to denial of service. The CVSS 3.1 score is 7.5 because the issue is network-reachable, low complexity, unauthenticated, and affects availability only.

Likely exposure

Exposure is likely in web applications that render untrusted HTML email using lettersanitizer below 1.0.2. Applications using react-letter may be affected transitively because react-letter depends on lettersanitizer. The source bundle does not identify affected hosted services or broader product integrations.

Exploitation context

The provided sources describe denial of service from CSS at-rule handling. CISA KEV status is false in the bundle, and no cited source here confirms active exploitation. Treat exploitability as plausible from untrusted email content, but do not assume known exploitation without additional evidence.

Researcher notes

Evidence is strongest for affected versions, impact type, and fixed version. The bundle does not provide detailed root-cause analysis beyond improper CSS at-rule handling, nor does it include confirmed exploitation. Avoid claiming confidentiality or integrity impact because CVSS marks both as none.

Mitigation direction

  • Upgrade lettersanitizer to version 1.0.2 or later.
  • Update react-letter dependency trees that pull vulnerable lettersanitizer versions.
  • Refresh lockfiles so transitive dependency resolution actually uses the patched version.
  • Check the GitHub advisory for any newer vendor guidance.
  • Prioritize applications that render untrusted email or user-supplied HTML.

Validation and detection

  • Review package manifests and lockfiles for lettersanitizer below 1.0.2.
  • Check whether react-letter is present in frontend dependency trees.
  • Confirm deployed builds include the patched lettersanitizer version.
  • Review monitoring for sanitizer-related browser crashes or rendering failures.
  • Verify untrusted email HTML rendering paths use the updated dependency.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-754: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-31103 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H3.93.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.5High
CVSS 3.1 vector shape for CVE-2022-31103Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
mat-szlettersanitizer< 1.0.2Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-754 · source CWE mapping

Improper Check for Unusual or Exceptional Conditions

Improper Check for Unusual or Exceptional Conditions represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.