GHSA-4wv4-mgfq-598v: Nobelprizeparser Code Injection Vulnerability

CRITICAL
CWE-94
Published
Advisory Summary

GHSA-4wv4-mgfq-598v is a CRITICAL code injection vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Nobelprizeparser libraries in the npm ecosystem. The issue involves code injection in nobelprizeparser. Remediation is available by upgrading affected packages to version 1.0.2.

GHSA-4wv4-mgfq-598v at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-4wv4-mgfq-598v
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Nobelprizeparser
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-4wv4-mgfq-598v

To remediate this vulnerability, upgrade all affected Nobelprizeparser dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

nobelprizeparser fixed: 1.0.2
npm install nobelprizeparser@1.0.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 nobelprizeparser

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-4wv4-mgfq-598v, inspect your project dependencies using npm:

npm ls nobelprizeparser

Analyze the terminal output to locate any version of Nobelprizeparser in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.2), your application is affected.

Note: The npm ls nobelprizeparser 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Nobelprizeparser, 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

Code injection through use of eval.

GHSA-4wv4-mgfq-598v Affected Nobelprizeparser Versions

1 component(s)
Fixed Versions:
1.0.2
Product / Package Ecosystem Affected Versions Fixed Version
nobelprizeparser
npm
< 1.0.2
1.0.2

References

Frequently Asked Questions

What is GHSA-4wv4-mgfq-598v?
GHSA-4wv4-mgfq-598v is a security vulnerability in Nobelprizeparser involving Code injection in nobelprizeparser under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Nobelprizeparser versions are affected?
Affected versions include releases prior to 1.0.2 across affected packages: nobelprizeparser.
What version fixes GHSA-4wv4-mgfq-598v?
Upgrading to 1.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nobelprizeparser affected?
Yes, nobelprizeparser is affected in releases prior to 1.0.2. Upgrade your dependency to 1.0.2 or later.
What CWE is associated with GHSA-4wv4-mgfq-598v?
GHSA-4wv4-mgfq-598v is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check npm dependencies for GHSA-4wv4-mgfq-598v?
Run the dependency tree command: 'npm ls nobelprizeparser'. 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-4wv4-mgfq-598v",
  "modified" : "2021-03-12T19:13:27Z",
  "published" : "2021-03-12T23:00:19Z",
  "aliases" : [ ],
  "summary" : "Code injection in nobelprizeparser",
  "details" : "Code injection through use of eval.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "nobelprizeparser"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/AnneTheDev/nobelprize/security/advisories/GHSA-4wv4-mgfq-598v"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/AnneTheDev/nobelprize/commit/00639d375b0efd097bc1eca18d9dc021691b9286"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/package/nobelprizeparser"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-03-12T19:13:27Z",
    "nvd_published_at" : null
  }
}