CVE-2023-3672: Webmention.js Cross-Site Scripting Vulnerability
HIGHCVE-2023-3672 is a HIGH (CVSS 7.3) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Webmention.js libraries in the npm ecosystem. The issue involves webmention.js cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 0.5.5.
CVE-2023-3672 at a Glance
Security Impact
CVSS: 7.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2023-3672
To remediate this vulnerability, upgrade all affected Webmention.js 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 webmention.js@0.5.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls webmention.js
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2023-3672, inspect your project dependencies using npm:
npm ls webmention.js
Analyze the terminal output to locate any version of Webmention.js in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.5), your application is affected.
Note: The npm ls webmention.js 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Webmention.js, 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-2023-3672 Affected Webmention.js Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
webmention.js
|
npm |
< 0.5.5
|
0.5.5
|
References
Frequently Asked Questions
What is CVE-2023-3672?
Which Webmention.js versions are affected?
What version fixes CVE-2023-3672?
Is webmention.js affected?
What is the CVSS score of CVE-2023-3672?
What CWE is associated with CVE-2023-3672?
How can I check npm dependencies for CVE-2023-3672?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r54g-4qq6-chxg",
"modified" : "2023-07-14T21:50:30Z",
"published" : "2023-07-14T12:30:20Z",
"aliases" : [ "CVE-2023-3672" ],
"summary" : "webmention.js Cross-site Scripting vulnerability",
"details" : "webmention.js prior to 0.5.5 is vulnerable to cross-site scripting.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "webmention.js"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-3672"
}, {
"type" : "WEB",
"url" : "https://github.com/plaidweb/webmention.js/commit/3551b66b3e40da37fee89ecf72930c5efdc53011"
}, {
"type" : "WEB",
"url" : "https://github.com/PlaidWeb/webmention.js/blob/9457e71433c0d2430bbe767ecc5b5837140d0ee4/static/webmention.js#L330"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/plaidweb/webmention.js"
}, {
"type" : "WEB",
"url" : "https://huntr.dev/bounties/75cfb7ad-a75f-45ff-8688-32a9c55179aa"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-14T21:50:30Z",
"nvd_published_at" : "2023-07-14T10:15:08Z"
}
}