chore(deps): fix security vulnerabilities#162
Conversation
Fixes: - GHSA-3949-f494-cm99 (Cross-site Scripting in Prism) - GHSA-x7hr-w5r2-h6wg (PrismJS DOM Clobbering vulnerability)
Fixes GHSA-xxjr-mmjv-4gpg (Prototype Pollution in _.unset and _.omit)
npm audit fix updates: - @babel/runtime-corejs3: fix inefficient RegExp complexity (GHSA-968p-4wvh-cqc8) - ansi-regex: fix ReDoS vulnerability (GHSA-93q8-gq69-wqmw) - brace-expansion: fix ReDoS vulnerability (GHSA-v6h2-p8h4-qcjw) - js-yaml: fix prototype pollution (GHSA-mh29-5h37-fv8m)
Updates tmp from ^0.1.0 to ^0.2.5 which fixes GHSA-52f5-9888-hmc6 (arbitrary temporary file/directory write via symbolic link). Updated test to use unsafeCleanup option for non-empty directory removal.
2bb0b38 to
77008da
Compare
📝 WalkthroughWalkthroughThis PR updates three npm dependencies to newer versions (prismjs, tmp, and lodash) and modifies test setup code to utilize the tmp library's automatic cleanup feature via the unsafeCleanup option parameter. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 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)
No actionable comments were generated in the recent review. 🎉 Comment |
|
🎉 This PR is included in version 1.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
Fixes multiple security vulnerabilities identified by
npm audit.Fixed Vulnerabilities
_.unset/_.omitRemaining Vulnerability
trim / remark-parse (High) - Requires upgrading remark-parse from 8.x to 11.x, which is a breaking change involving the entire unified/remark ecosystem migration to ESM. This would need dedicated refactoring work and is out of scope for this PR.
Changes
npm audit fixfor transitive dependenciesSummary by CodeRabbit
Chores
Tests