Vulnerabilities in pkg:npm/@mozilla/readability

PACKAGE
Advisory Identifier: GHSA-3p6v-hrg8-8qj7
Advisory Summary

CVE-2025-2792 is a LOW denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting @mozilla/readability libraries in the npm ecosystem. The issue involves @mozilla/readability denial of service through regex. Remediation is available by upgrading affected packages to version 0.6.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@mozilla/readability

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@mozilla/readability. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-3p6v-hrg8-8qj7 CVE-2025-2792 LOW @mozilla/readability Denial of Service through Regex

CVE-2025-2792 at a Glance

CVE Identifier CVE-2025-2792
GHSA Identifier GHSA-3p6v-hrg8-8qj7
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-1333: Inefficient Regular Expression Complexity
Affected Product @mozilla/readability
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-2792

To remediate this vulnerability, upgrade all affected @mozilla/readability dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@mozilla/readability fixed: 0.6.0
npm install @mozilla/readability@0.6.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @mozilla/readability

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-2792, inspect your project dependencies using npm:

npm ls @mozilla/readability

Analyze the terminal output to locate any version of @mozilla/readability in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.0), your application is affected.

Note: The npm ls @mozilla/readability command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In @mozilla/readability, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Specially crafted titles may have caused a regular expression to excessively backtrack and cause a local denial of service. Additional Details are [available at Bugzilla](https://bugzilla.mozilla.org/show_bug.cgi?id=1948833) Credit: DayShift

CVE-2025-2792 Affected @mozilla/readability Versions

1 component(s)
Fixed Versions:
0.6.0
Product / Package Ecosystem Affected Versions Fixed Version
@mozilla/readability
npm
< 0.6.0
0.6.0

References

Frequently Asked Questions

What is CVE-2025-2792?
CVE-2025-2792 is a security vulnerability in @mozilla/readability involving @mozilla/readability Denial of Service through Regex under CWE-1333: Inefficient Regular Expression Complexity.
Which @mozilla/readability versions are affected?
Affected versions include releases prior to 0.6.0 across affected packages: @mozilla/readability.
What version fixes CVE-2025-2792?
Upgrading to 0.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @mozilla/readability affected?
Yes, @mozilla/readability is affected in releases prior to 0.6.0. Upgrade your dependency to 0.6.0 or later.
What CWE is associated with CVE-2025-2792?
CVE-2025-2792 is classified under CWE-1333: Inefficient Regular Expression Complexity (The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.).
How can I check npm dependencies for CVE-2025-2792?
Run the dependency tree command: 'npm ls @mozilla/readability'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3p6v-hrg8-8qj7",
  "modified" : "2025-03-26T14:08:48Z",
  "published" : "2025-03-26T14:08:48Z",
  "aliases" : [ "CVE-2025-2792" ],
  "summary" : "@mozilla/readability Denial of Service through Regex",
  "details" : "Specially crafted titles may have caused a regular expression to excessively backtrack and cause a local denial of service.\n\nAdditional Details are [available at Bugzilla](https://bugzilla.mozilla.org/show_bug.cgi?id=1948833)\n\nCredit: DayShift",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@mozilla/readability"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.6.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mozilla/readability/security/advisories/GHSA-3p6v-hrg8-8qj7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mozilla/readability/commit/1c4d63be3e7344c3dfdf76ebb05fd0d32de93eb3"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.mozilla.org/show_bug.cgi?id=1948833"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mozilla/readability"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1333" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-26T14:08:48Z",
    "nvd_published_at" : null
  }
}