Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2021-23518 (High) detected in cached-path-relative-1.0.2.tgz #46

Open
mend-bolt-for-github bot opened this issue Mar 14, 2022 · 0 comments
Open
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource

Comments

@mend-bolt-for-github
Copy link

mend-bolt-for-github bot commented Mar 14, 2022

CVE-2021-23518 - High Severity Vulnerability

Vulnerable Library - cached-path-relative-1.0.2.tgz

Memoize the results of the path.relative function

Library home page: https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.0.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/cached-path-relative/package.json

Dependency Hierarchy:

  • grunt-browserify-3.8.0.tgz (Root Library)
    • watchify-3.11.1.tgz
      • browserify-16.2.3.tgz
        • cached-path-relative-1.0.2.tgz (Vulnerable Library)

Found in base branch: master

Vulnerability Details

The package cached-path-relative before 1.1.0 are vulnerable to Prototype Pollution via the cache variable that is set as {} instead of Object.create(null) in the cachedPathRelative function, which allows access to the parent prototype properties when the object is used to create the cached relative path. When using the origin path as proto, the attribute of the object is accessed instead of a path. Note: This vulnerability derives from an incomplete fix in https://security.snyk.io/vuln/SNYK-JS-CACHEDPATHRELATIVE-72573

Publish Date: 2022-01-21

URL: CVE-2021-23518

CVSS 3 Score Details (7.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23518

Release Date: 2022-01-21

Fix Resolution (cached-path-relative): 1.1.0

Direct dependency fix Resolution (grunt-browserify): 4.0.0


Step up your Open Source Security Game with Mend here

@mend-bolt-for-github mend-bolt-for-github bot added the Mend: dependency security vulnerability Security vulnerability detected by WhiteSource label Mar 14, 2022
@mend-bolt-for-github mend-bolt-for-github bot changed the title CVE-2021-23518 (High) detected in cached-path-relative-1.0.2.tgz CVE-2021-23518 (Critical) detected in cached-path-relative-1.0.2.tgz Aug 29, 2023
@mend-bolt-for-github mend-bolt-for-github bot changed the title CVE-2021-23518 (Critical) detected in cached-path-relative-1.0.2.tgz CVE-2021-23518 (High) detected in cached-path-relative-1.0.2.tgz Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource
Projects
None yet
Development

No branches or pull requests

0 participants