Vulnerabilities in pkg:npm/@mozilla/readability
PACKAGECVE-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.
pkg:npm/@mozilla/readability
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
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.
npm install @mozilla/readability@0.6.0
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
CVE-2025-2792 Affected @mozilla/readability Versions
1 component(s)| 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?
Which @mozilla/readability versions are affected?
What version fixes CVE-2025-2792?
Is @mozilla/readability affected?
What CWE is associated with CVE-2025-2792?
How can I check npm dependencies for CVE-2025-2792?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}