CVE-2019-5479: Larvitbase api Unintended Require Vulnerability

HIGH
Advisory Identifier: GHSA-xf27-jqwv-gf3r
CVSS 7.5
CWE-829
Published
Advisory Summary

CVE-2019-5479 is a HIGH (CVSS 7.5) unintended require vulnerability (CWE-829: Inclusion of Functionality from Untrusted Control Sphere) affecting Larvitbase api libraries in the npm ecosystem. The issue involves unintended require in larvitbase-api. Remediation is available by upgrading affected packages to version 0.5.5.

CVE-2019-5479 at a Glance

CVE Identifier CVE-2019-5479
GHSA Identifier GHSA-xf27-jqwv-gf3r
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-829: Inclusion of Functionality from Untrusted Control Sphere
Affected Product Larvitbase api
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2019-5479

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

larvitbase-api fixed: 0.5.5
npm install larvitbase-api@0.5.5
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 larvitbase-api

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2019-5479, inspect your project dependencies using npm:

npm ls larvitbase-api

Analyze the terminal output to locate any version of Larvitbase api 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 larvitbase-api 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-829: Inclusion of Functionality from Untrusted Control Sphere, where the product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere. In Larvitbase api, 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

Versions of `larvitbase-api` prior to 0.5.4 are vulnerable to an Unintended Require. The package exposes an API endpoint and passes a GET parameter unsanitized to an `require()` call. This allows attackers to execute any `.js` file in the same folder as the server is running. ## Recommendation Upgrade to version 0.5.4 or later.

CVE-2019-5479 Affected Larvitbase api Versions

1 component(s)
Fixed Versions:
0.5.5
Product / Package Ecosystem Affected Versions Fixed Version
larvitbase-api
npm
< 0.5.5
0.5.5

References

Frequently Asked Questions

What is CVE-2019-5479?
CVE-2019-5479 is a security vulnerability in Larvitbase api involving Unintended Require in larvitbase-api under CWE-829: Inclusion of Functionality from Untrusted Control Sphere.
Which Larvitbase api versions are affected?
Affected versions include releases prior to 0.5.5 across affected packages: larvitbase-api.
What version fixes CVE-2019-5479?
Upgrading to 0.5.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is larvitbase-api affected?
Yes, larvitbase-api is affected in releases prior to 0.5.5. Upgrade your dependency to 0.5.5 or later.
What is the CVSS score of CVE-2019-5479?
CVE-2019-5479 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2019-5479?
CVE-2019-5479 is classified under CWE-829: Inclusion of Functionality from Untrusted Control Sphere (The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.).
How can I check npm dependencies for CVE-2019-5479?
Run the dependency tree command: 'npm ls larvitbase-api'. 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-xf27-jqwv-gf3r",
  "modified" : "2023-09-11T18:33:46Z",
  "published" : "2019-09-11T23:03:57Z",
  "aliases" : [ "CVE-2019-5479" ],
  "summary" : "Unintended Require in larvitbase-api",
  "details" : "Versions of `larvitbase-api` prior to 0.5.4 are vulnerable to an Unintended Require. The package exposes an API endpoint and passes a GET parameter unsanitized to an `require()` call. This allows attackers to execute any `.js` file in the same folder as the server is running.\n\n\n## Recommendation\n\nUpgrade to version 0.5.4 or later.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "larvitbase-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.5.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-5479"
  }, {
    "type" : "WEB",
    "url" : "https://hackerone.com/reports/566056"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/1120"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-829" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-09-04T14:29:28Z",
    "nvd_published_at" : null
  }
}