-
Notifications
You must be signed in to change notification settings - Fork 766
@react-email/code-block depends on vulnerable version of prismjs #1943
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
Comments
This is showing up in my package now as well. Hope to have this patched asap. https://github.com/daveyplate/better-auth-ui/security/dependabot/7 |
+1 |
When will you publish these changes? They are critical to me. |
Looks like the changes to update Just flagging in case this was missed during the release process. Tagging @gabrielmfern here since I saw you merged the changes — really appreciate all the work you’re doing on this project 🙌 |
This has been fixed in @react-email/code-block 0.0.12/@react-email/code-block 0.0.12 and in future versions we'll have it unpinned to avoid these kind of situations. |
Describe the Bug
@react-email/code-block depends on vulnerable version of prismjs
See GHSA-x7hr-w5r2-h6wg for vulnerability description.
Unfortunately as of 3/4/2025 https://github.com/PrismJS/prism appears abandoned and has not had a commit in 3 years, so switching dependencies or making @react-email/code-block optional for people that don't need it might help.
Which package is affected (leave empty if unsure)
No response
Link to the code that reproduces this issue
react-email/packages/code-block/package.json
Line 50 in 8dfb96a
To Reproduce
Install @react-email/components as described in the docs and check package-lock.json or node_modules for installed dependencies.
Expected Behavior
@react-email/components should not depend on a vulnerable dependency.
What's your node version? (if relevant)
No response
The text was updated successfully, but these errors were encountered: