fix: fixed stylus vulnerability by using the npm provided - 0.0.1-security version #8592
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📄 Summary
Fix: Add yarn resolution for stylus security vulnerability
Issue
The
typescript-plugin-css-modules
package depends onstylus@^0.59.0
(v5.0.1) orstylus@^0.62.0
(v5.1.0), which contains known security vulnerabilities.Why upgrading the dependent package doesn't solve this
typescript-plugin-css-modules@5.1.0
still requiresstylus@^0.62.0
stylus
package has been replaced in npm registry withstylus@0.0.1-security
(a security stub)Solution
Added yarn resolution to explicitly force
stylus@0.0.1-security
:Debugging / Testing
yarn install
completes without security warningsyarn build
runs fineyarn why stylus
shows forced resolution working correctly✅ Changes
🏷️ Required: Add Relevant Labels
ex:
frontend
backend
devops
bug
enhancement
ui
test
👥 Reviewers
🧪 How to Test
🔍 Related Issues
Closes #
📸 Screenshots / Screen Recording (if applicable / mandatory for UI related changes)
📋 Checklist
👀 Notes for Reviewers
Important
Update
stylus
to0.0.1-security
inpackage.json
to fix a security vulnerability.stylus
to version0.0.1-security
inpackage.json
to address a security vulnerability.This description was created by
for c9c61de. You can customize this summary. It will automatically update as commits are pushed.