You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Bug CVE-2023-46233 describes the PBKDF2 algorithm implemented in crypto-js prior to version 4.2.0 as being 1,000 times weaker according to the spec from 1993 and 1,300,000 weaker than the current industry standard.
To Reproduce
Steps to reproduce the behavior including code snippet (if applies):
If the only crypto-js dependency in your project's manifest is via react-pdf, you're safe enough to dismiss the dependabot alert as Vulnerable code is not actually used
A few comments regarding this:
It causes dependabot (or whatever SCA tooling one might use) to raise a critical error for users of react-pdf, due to the crypto-js dependency
Since it's such an easy fix, the maintainers of react-pdf should certainly update their version of crypto-js to the mitigated version, for everyones' sanity
Important - Users of react-pdf can dismiss the dependabot warning
react-pdf only actually uses the md5 algorithm from crypto-js,
(I haven't thoroughly reviewed the rest of the codebase, but I assume md5 is used as a convenient hashing algorithm in a non security-critical context, and there's no reason to actually use PBKDF2 or any other crypto function )
so it's safe enough to assume the vulnerable algorithm is never actually used by react-pdf,
therefore, assuming the only dependency is via react-pdf's dependency, a project with react-pdf in its dependencies is not affected by this CVE,
The developer can dismiss the alert as Vulnerable code is not actually used
The Bug
CVE-2023-46233 describes the PBKDF2 algorithm implemented in
crypto-js
prior to version 4.2.0 as being 1,000 times weaker according to the spec from 1993 and 1,300,000 weaker than the current industry standard.To Reproduce
Steps to reproduce the behavior including code snippet (if applies):
trivy fs .
inside that folder.crypto-js
is installed at version 4.0.0 and is listed as acritical
severity CVE.Expected behavior
Expect
crypto-js
dependency to be upgraded within thepdfkit
package to the latest version, 4.2.0.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: