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

Drop loader-utils dep #865

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LukeCarrier
Copy link

@LukeCarrier LukeCarrier commented Aug 16, 2024

Instead of require("loader-utils").getOptions(LoaderContext) we should be good with LoaderContext.getOptions(), where LoaderContext is bound to this.

This lets us drop the loader-utils dep, which until 3.2.1 contains a ReDoS vulnerability (CVE-2022-37603).

Note since it is still a transitive dependency (via webpack-v4 and babel-loader), it will still be necessary to add a resolution for it.

Instead of require("loader-utils").getOptions(LoaderContext) we should
be good with LoaderContext.getOptions(), where LoaderContext is bound to
this.

This lets us drop the loader-utils dep, which until 3.2.1 contains a
ReDoS vulnerability (CVE-2022-37603).
Copy link

codesandbox bot commented Aug 16, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@LukeCarrier LukeCarrier marked this pull request as ready for review August 16, 2024 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant