Fix prismjs DOM Clobbering vulnerability (Dependabot #45)#599
Fix prismjs DOM Clobbering vulnerability (Dependabot #45)#599
Conversation
Add npm override in app/package.json to force prismjs ^1.30.0, resolving the vulnerable 1.27.0 version nested under refractor 3.x (transitive dep of react-syntax-highlighter). Note: The remaining Dependabot alerts (pypdf #47-60, requests #46) cannot be fixed here — they are pinned by upstream dependencies (graphrag-sdk pins pypdf<6.0.0, multilspy pins requests==2.32.3). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdded a top-level "overrides" section to app/package.json specifying prismjs version ^1.30.0 to enforce npm dependency resolution. No functional changes or control flow modifications are introduced. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Fixes the prismjs DOM Clobbering vulnerability (Dependabot alert #45).
Change
Added an npm
overridessection inapp/package.jsonto forceprismjs ^1.30.0, eliminating the vulnerable1.27.0version that was nested underrefractor 3.x(transitive dependency ofreact-syntax-highlighter).Verification
npm auditreports 0 vulnerabilitiesRemaining alerts (not fixable here)
graphrag-sdk 0.8.2pinspypdf>=5.9.0,<6.0.0multilspypinsrequests==2.32.3These require upstream dependency updates to resolve.
Summary by CodeRabbit