CVE-2018-1000086: Pym.js Pym.js CSRF Vulnerability Vulnerability
HIGHCVE-2018-1000086 is a HIGH (CVSS 8.8) pym.js csrf vulnerability vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Pym.js libraries in the npm ecosystem. The issue involves pym.js csrf vulnerability. Remediation is available by upgrading affected packages to version 1.3.2.
CVE-2018-1000086 at a Glance
Security Impact
CVSS: 8.8
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:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2018-1000086
To remediate this vulnerability, upgrade all affected Pym.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 pym.js@1.3.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls pym.js
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2018-1000086, inspect your project dependencies using npm:
npm ls pym.js
Analyze the terminal output to locate any version of Pym.js in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.2), your application is affected.
Note: The npm ls pym.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-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 Pym.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-2018-1000086 Affected Pym.js Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pym.js
|
npm |
≥ 0.4.2
< 1.3.2
|
1.3.2
|
References
Frequently Asked Questions
What is CVE-2018-1000086?
Which Pym.js versions are affected?
What version fixes CVE-2018-1000086?
Is pym.js affected?
What is the CVSS score of CVE-2018-1000086?
What CWE is associated with CVE-2018-1000086?
How can I check npm dependencies for CVE-2018-1000086?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-82gw-pqf7-q3j2",
"modified" : "2023-09-11T18:19:05Z",
"published" : "2018-03-13T20:38:51Z",
"aliases" : [ "CVE-2018-1000086" ],
"summary" : "pym.js CSRF Vulnerability",
"details" : "NPR Visuals Team Pym.js version versions 0.4.2 up to 1.3.1 contains a Cross Site Request Forgery (CSRF) vulnerability in Pym.js `_onNavigateToMessage` function. \n\nhttps://github.com/nprapps/pym.js/blob/master/src/pym.js#L573 can result in Arbitrary javascript code execution. This attack appears to be exploitable if the Attacker gains full javascript access to pages with Pym.js embeds, or when user visits an attacker-crafted page. This vulnerability appears to have been fixed in versions 1.3.2 and later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "pym.js"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.4.2"
}, {
"fixed" : "1.3.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.3.1"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-1000086"
}, {
"type" : "WEB",
"url" : "https://github.com/nprapps/pym.js/issues/170"
}, {
"type" : "WEB",
"url" : "https://github.com/nprapps/pym.js/commit/c3552a6cf2532664c17bd6a318fb3cf8e4cf2f97"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-82gw-pqf7-q3j2"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/nprapps/pym.js"
}, {
"type" : "WEB",
"url" : "http://blog.apps.npr.org/2018/02/15/pym-security-vulnerability.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:23:59Z",
"nvd_published_at" : null
}
}