Skip to content

Remove lodash.isobjectlike package #377

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

Merged

Conversation

trkic-zeiss
Copy link
Contributor

The presence of the dependency "lodash.isobjectlike": "^4.0.0" in the code is causing BlackDuck to report a vulnerability issue related to Prototype Pollution.

However, it seems unnecessary to load this dependency separately because the function isObjectLike is already available in the "lodash" library.

Furthermore, the issue related to Prototype Pollution has been addressed and fixed in version 4.17.12 of "lodash".

You can refer to the following link for additional information: https://security.snyk.io/vuln/SNYK-JS-LODASH-608086

chris-pardy added a commit to chris-pardy/json-rules-engine that referenced this pull request Oct 11, 2024
Remove the lodash.isObjectLike library and inline the function

Replaces CacheControl#377

Co-Author trkic-zeiss
The lodash package is being brought in via a transitive depenendcy, remove it entirely and in-line the method
Lodash is a transitive dependency, instead of relying on it just in-line the simple isObjectLike code
Copy link
Collaborator

@chris-pardy chris-pardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One less dependency!

@chris-pardy chris-pardy merged commit a74cb51 into CacheControl:master Oct 15, 2024
3 checks passed
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.

4 participants