Skip to content

svg-inline-loader-0.8.0.tgz: 2 vulnerabilities (highest severity is: 9.3) [trunk] #116

@mend-developer-platform-dev

Description

@mend-developer-platform-dev
📂 Vulnerable Library - svg-inline-loader-0.8.0.tgz

Cleans up and inlines your SVG files into Webpack module.

Path to dependency file: /src/Administration/Resources/app/administration/build/nuxt-component-library/package.json

Findings

Finding Severity 🎯 CVSS Exploit Maturity EPSS Library Type Fixed in Remediation Available Reachability
CVE-2022-37601 🟣 Critical 9.3 Not Defined 24.6% loader-utils-0.2.17.tgz Transitive N/A
CVE-2022-46175 🟠 Medium 6.1 Not Defined 40.5% json5-0.5.1.tgz Transitive N/A

Details

🟣CVE-2022-37601

Vulnerable Library - loader-utils-0.2.17.tgz

utils for webpack loaders

Library home page: https://registry.npmjs.org/loader-utils/-/loader-utils-0.2.17.tgz

Path to dependency file: /src/Administration/Resources/app/administration/build/nuxt-component-library/package.json

Dependency Hierarchy:

  • svg-inline-loader-0.8.0.tgz (Root Library)

    • loader-utils-0.2.17.tgz (Vulnerable Library)
  • nuxt-2.10.2.tgz (Root Library)

    • webpack-2.10.2.tgz
      • html-webpack-plugin-3.2.0.tgz
        • loader-utils-0.2.17.tgz (Vulnerable Library)

Vulnerability Details

Prototype pollution vulnerability in function parseQuery in parseQuery.js in webpack loader-utils via the name variable in parseQuery.js. This affects all versions prior to 1.4.1 and 2.0.3.

Publish Date: Oct 12, 2022 12:00 AM

URL: CVE-2022-37601

Threat Assessment

Exploit Maturity:Not Defined

EPSS:24.6%

Score: 9.3


Suggested Fix

Type: Upgrade version

Origin: GHSA-76p3-8jx3-jpfq

Release Date: Oct 12, 2022 12:00 AM

Fix Resolution : loader-utils - 2.0.3,loader-utils - 1.4.1

🟠CVE-2022-46175

Vulnerable Library - json5-0.5.1.tgz

JSON for the ES5 era.

Library home page: https://registry.npmjs.org/json5/-/json5-0.5.1.tgz

Path to dependency file: /src/Administration/Resources/app/administration/build/nuxt-component-library/package.json

Dependency Hierarchy:

  • svg-inline-loader-0.8.0.tgz (Root Library)

    • loader-utils-0.2.17.tgz
      • json5-0.5.1.tgz (Vulnerable Library)
  • nuxt-2.10.2.tgz (Root Library)

    • webpack-2.10.2.tgz
      • html-webpack-plugin-3.2.0.tgz
        • loader-utils-0.2.17.tgz
          • json5-0.5.1.tgz (Vulnerable Library)

Vulnerability Details

JSON5 is an extension to the popular JSON file format that aims to be easier to write and maintain by hand (e.g. for config files). The "parse" method of the JSON5 library before and including versions 1.0.1 and 2.2.1 does not restrict parsing of keys named "proto", allowing specially crafted strings to pollute the prototype of the resulting object. This vulnerability pollutes the prototype of the object returned by "JSON5.parse" and not the global Object prototype, which is the commonly understood definition of Prototype Pollution. However, polluting the prototype of a single object can have significant security impact for an application if the object is later used in trusted operations. This vulnerability could allow an attacker to set arbitrary and unexpected keys on the object returned from "JSON5.parse". The actual impact will depend on how applications utilize the returned object and how they filter unwanted keys, but could include denial of service, cross-site scripting, elevation of privilege, and in extreme cases, remote code execution. "JSON5.parse" should restrict parsing of "proto" keys when parsing JSON strings to objects. As a point of reference, the "JSON.parse" method included in JavaScript ignores "proto" keys. Simply changing "JSON5.parse" to "JSON.parse" in the examples above mitigates this vulnerability. This vulnerability is patched in json5 versions 1.0.2, 2.2.2, and later.
Mend Note: The description of this vulnerability differs from MITRE.

Publish Date: Dec 24, 2022 12:00 AM

URL: CVE-2022-46175

Threat Assessment

Exploit Maturity:Not Defined

EPSS:40.5%

Score: 6.1


Suggested Fix

Type: Upgrade version

Origin: GHSA-9c47-m6qq-7p4h

Release Date: Dec 24, 2022 12:00 AM

Fix Resolution : json5 - 1.0.2,json5 - 2.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions