Vulnerabilities in pkg:npm/pym.js

PACKAGE
Advisory Identifier: GHSA-82gw-pqf7-q3j2
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/pym.js

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/pym.js. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-82gw-pqf7-q3j2 CVE-2018-1000086 HIGH pym.js CSRF Vulnerability

CVE-2018-1000086 at a Glance

CVE Identifier CVE-2018-1000086
GHSA Identifier GHSA-82gw-pqf7-q3j2
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Pym.js
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

pym.js fixed: 1.3.2
npm install pym.js@1.3.2
Verify Direct and Transitive Dependencies

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

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. https://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.

CVE-2018-1000086 Affected Pym.js Versions

1 component(s)
Fixed Versions:
1.3.2
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?
CVE-2018-1000086 is a security vulnerability in Pym.js involving pym.js CSRF Vulnerability under CWE-352: Cross-Site Request Forgery (CSRF).
Which Pym.js versions are affected?
Affected versions include releases prior to 1.3.2 across affected packages: pym.js.
What version fixes CVE-2018-1000086?
Upgrading to 1.3.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pym.js affected?
Yes, pym.js is affected in releases prior to 1.3.2. Upgrade your dependency to 1.3.2 or later.
What is the CVSS score of CVE-2018-1000086?
CVE-2018-1000086 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-1000086?
CVE-2018-1000086 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (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.).
How can I check npm dependencies for CVE-2018-1000086?
Run the dependency tree command: 'npm ls pym.js'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}