Skip to content

loader-utils security issue #1743

@jschuler

Description

@jschuler

Hi,

We are trying to remove traces of loader-utils @ v2 from our project OCM, due to a security scan issue https://issues.redhat.com/browse/HAC-2306

Flaw:

CVE-2022-37599 loader-utils: regular expression denial of service in interpolateName.js
https://bugzilla.redhat.com/show_bug.cgi?id=2134872

A Regular expression denial of service (ReDoS) flaw was found in Function interpolateName in interpolateName.js in webpack loader-utils 2.0.0 via the resourcePath variable in interpolateName.js.

loader-utils prior to version 3 is deprecated and no longer supported

External Reference:
https://github.com/webpack/loader-utils/issues/211

https://github.com/RedHatInsights/frontend-components/blob/master/packages/config-utils/chrome-render-loader.js
uses loader-utils getOptions method.

There are 2 issues:

  • There is an implicit dependency on loader-utils since it's not in package.json
  • The implicit dependency is for version 2 of loader-utils, version 3 removed the method in favor of loaderContext

Can this function call be removed?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions