CVE-2025-8101: Linkifyjs Cross-Site Scripting Vulnerability
HIGHCVE-2025-8101 is a HIGH cross-site scripting vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Linkifyjs libraries in the npm ecosystem. The issue involves linkify allows prototype pollution & html attribute injection (xss). Remediation is available by upgrading affected packages to version 4.3.2.
CVE-2025-8101 at a Glance
How to Fix CVE-2025-8101
To remediate this vulnerability, upgrade all affected Linkifyjs 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 linkifyjs@4.3.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls linkifyjs
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-8101, inspect your project dependencies using npm:
npm ls linkifyjs
Analyze the terminal output to locate any version of Linkifyjs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.3.2), your application is affected.
Note: The npm ls linkifyjs 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-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Linkifyjs, 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-8101 Affected Linkifyjs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
linkifyjs
|
npm |
≥ 4.3.1
< 4.3.2
All 1 versions
4.3.1
|
4.3.2
|
References
Frequently Asked Questions
What is CVE-2025-8101?
Which Linkifyjs versions are affected?
What version fixes CVE-2025-8101?
Is linkifyjs affected?
What CWE is associated with CVE-2025-8101?
How can I check npm dependencies for CVE-2025-8101?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-95jq-xph2-cx9h",
"modified" : "2026-06-26T20:26:11Z",
"published" : "2025-07-26T00:30:32Z",
"aliases" : [ "CVE-2025-8101" ],
"summary" : "Linkify Allows Prototype Pollution & HTML Attribute Injection (XSS)",
"details" : "Prototype Pollution in internal `assign()` helper in Linkify allows remote attackers to execute arbitrary JavaScript (Stored or Reflected XSS) via injection of event handlers through unfiltered proto property. This issue affects Linkify version 4.3.1 and is fixed in 4.3.2.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "linkifyjs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.3.1"
}, {
"fixed" : "4.3.2"
} ]
} ],
"versions" : [ "4.3.1" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-8101"
}, {
"type" : "WEB",
"url" : "https://github.com/nfrasser/linkifyjs/commit/931d3e28b68951b8f898ea4d6504696346b485b0"
}, {
"type" : "WEB",
"url" : "https://caverav.cl/posts/linkify-xss/linkify-xss"
}, {
"type" : "WEB",
"url" : "https://fluidattacks.com/advisories/charly"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/nfrasser/linkifyjs"
}, {
"type" : "WEB",
"url" : "https://github.com/nfrasser/linkifyjs/releases/tag/v4.3.2"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/package/linkifyjs"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-29T19:09:33Z",
"nvd_published_at" : "2025-07-25T22:15:25Z"
}
}