LiveActive security incident?Get immediate response
CVE Record

CVE-2021-23425: Regular Expression Denial of Service (ReDoS)

All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.

MediumCVSS 5.3Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2021-23425 affects trim-off-newlines, a JavaScript package, with Regular Expression Denial of Service during string processing. If an application passes attacker-controlled strings to it, request handling may slow or stall, affecting availability. The source bundle rates it medium and does not show CISA KEV listing.

Executive priority

Handle during normal vulnerability management unless the dependency is reachable from public, unauthenticated input. Escalate for customer-facing services where availability degradation would affect revenue or operations.

Technical view

The CVE describes all versions of trim-off-newlines as vulnerable to ReDoS via string processing. The CVSS 3.1 score is 5.3 with low availability impact and no confidentiality or integrity impact. Practical exposure depends on whether untrusted input reaches the package path.

Likely exposure

Most exposure is indirect through npm or WebJars dependency chains. Internet-facing risk exists only where external input is processed by trim-off-newlines in a reachable application workflow.

Exploitation context

The source bundle does not cite active exploitation, public weaponization, or CISA KEV inclusion. Treat this as a dependency-driven availability risk, not confirmed in-the-wild exploitation.

Researcher notes

Evidence is limited to advisory metadata and referenced package sources. The bundle states all versions are affected but does not name a fixed release. Validate reachability before assigning business-critical urgency.

Mitigation direction

  • Inventory direct and transitive use of trim-off-newlines.
  • Check Snyk, CVE, and upstream package guidance for fixed or replacement versions.
  • Prioritize internet-facing services that process untrusted text through this dependency.
  • If no fixed version exists, evaluate dependency replacement or removal.
  • Apply input size limits where untrusted strings enter affected workflows.

Validation and detection

  • Confirm whether trim-off-newlines appears in package lockfiles or WebJars dependencies.
  • Identify reachable code paths that pass user-controlled strings to the package.
  • Review production services for externally exposed text-processing endpoints.
  • Verify advisory status before assuming a patch is available.
  • Track remediation evidence in dependency management records.
Prepared
Confidence
medium
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.

cve · low confidence lookup

CVE-2021-23425 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
Medium
CVSS
5.3 (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:L/E:P

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
5.3CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P3.91.4Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.3Medium
CVSS 3.1 vector shape for CVE-2021-23425Attack 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:L/E:P

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
n/atrim-off-newlines0Listed
Weakness

CWE details

No CWE listed

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