CVE-2020-15156: Nodebb plugin blog comments Cross-Site Scripting Vulnerability
MODERATECVE-2020-15156 is a MODERATE (CVSS 6.8) cross-site scripting vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Nodebb plugin blog comments libraries in the npm ecosystem. The issue involves xss due to lack of csrf validation for replying/publishing. Remediation is available by upgrading affected packages to version 0.7.0.
CVE-2020-15156 at a Glance
Security Impact
CVSS: 6.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N).
How to Fix CVE-2020-15156
To remediate this vulnerability, upgrade all affected Nodebb plugin blog comments 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 nodebb-plugin-blog-comments@0.7.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls nodebb-plugin-blog-comments
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2020-15156, inspect your project dependencies using npm:
npm ls nodebb-plugin-blog-comments
Analyze the terminal output to locate any version of Nodebb plugin blog comments in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.0), your application is affected.
Note: The npm ls nodebb-plugin-blog-comments 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-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Nodebb plugin blog comments, 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-2020-15156 Affected Nodebb plugin blog comments Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
nodebb-plugin-blog-comments
|
npm |
< 0.7.0
|
0.7.0
|
References
Frequently Asked Questions
What is CVE-2020-15156?
Which Nodebb plugin blog comments versions are affected?
What version fixes CVE-2020-15156?
Is nodebb-plugin-blog-comments affected?
What is the CVSS score of CVE-2020-15156?
What CWE is associated with CVE-2020-15156?
How can I check npm dependencies for CVE-2020-15156?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-43m5-c88r-cjvv",
"modified" : "2021-01-07T23:39:51Z",
"published" : "2020-08-26T18:55:38Z",
"aliases" : [ "CVE-2020-15156" ],
"summary" : "XSS due to lack of CSRF validation for replying/publishing",
"details" : "### Impact\nDue to lack of CSRF validation, a logged in user is potentially vulnerable to an XSS attack which could allow a third party to post on their behalf on the forum.\n\n### Patches\nUpgrade to the latest version v0.7.0\n\n### Workarounds\nYou can cherry-pick the following commit: [https://github.com/psychobunny/nodebb-plugin-blog-comments/commit/cf43beedb05131937ef46f365ab0a0c6fa6ac618](https://github.com/psychobunny/nodebb-plugin-blog-comments/commit/cf43beedb05131937ef46f365ab0a0c6fa6ac618)\n\n### References\nVisit https://community.nodebb.org if you have any questions about this issue or on how to patch / upgrade your instance.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "nodebb-plugin-blog-comments"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.7.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/psychobunny/nodebb-plugin-blog-comments/security/advisories/GHSA-43m5-c88r-cjvv"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15156"
}, {
"type" : "WEB",
"url" : "https://github.com/psychobunny/nodebb-plugin-blog-comments/commit/cf43beedb05131937ef46f365ab0a0c6fa6ac618"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/package/nodebb-plugin-blog-comments"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-26T18:55:19Z",
"nvd_published_at" : null
}
}