Skip to content

Conversation

@modern-dev-dude
Copy link

v3.3.1 was tagged in CVE-2024-57072 because the library uses Object.defineProperty allowing attackers to exploit prototype pollution.

This PR removes Object and replaces with Maps. This preserves functionality while safeguarding against prototype pollution because the stored values are not directly appended to the prototype chain

added unit test in both import and require code paths

CVE - https://nvd.nist.gov/vuln/detail/CVE-2024-57072

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