Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"description": "A CLI tool for installing AI rules for Cursor",
"type": "module",
"main": "dist/index.js",
"bin": {
"cari": "./dist/index.js"
},
"bin": "./dist/index.js",
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
Expand Down Expand Up @@ -69,5 +67,8 @@
},
"engines": {
"node": ">=14.0.0"
},
"resolutions": {
"js-yaml": "^4.1.1"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

js-yaml 4.x resolution may break 3.x-dependent packages

Medium Severity

The resolutions field forces all js-yaml dependencies to use ^4.1.1, but packages @changesets/parse and read-yaml-file in the dependency tree require js-yaml 3.x and likely use APIs that were removed in 4.x (e.g., safeLoad() was renamed to load()). This could cause runtime errors when using @changesets/cli. The CVE is also fixed in js-yaml 3.14.2, which would be API-compatible with these packages.

Fix in Cursor Fix in Web

}
}
38 changes: 9 additions & 29 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1393,12 +1393,10 @@ __metadata:
languageName: node
linkType: hard

"argparse@npm:^1.0.7":
version: 1.0.10
resolution: "argparse@npm:1.0.10"
dependencies:
sprintf-js: "npm:~1.0.2"
checksum: 10c0/b2972c5c23c63df66bca144dbc65d180efa74f25f8fd9b7d9a0a6c88ae839db32df3d54770dcb6460cf840d232b60695d1a6b1053f599d84e73f7437087712de
"argparse@npm:^2.0.1":
version: 2.0.1
resolution: "argparse@npm:2.0.1"
checksum: 10c0/c5640c2d89045371c7cedd6a70212a04e360fd34d6edeae32f6952c63949e3525ea77dbec0289d8213a99bbaeab5abfa860b5c12cf88a2e6cf8106e90dd27a7e
languageName: node
linkType: hard

Expand Down Expand Up @@ -1762,16 +1760,6 @@ __metadata:
languageName: node
linkType: hard

"esprima@npm:^4.0.0":
version: 4.0.1
resolution: "esprima@npm:4.0.1"
bin:
esparse: ./bin/esparse.js
esvalidate: ./bin/esvalidate.js
checksum: 10c0/ad4bab9ead0808cf56501750fd9d3fb276f6b105f987707d059005d57e182d18a7c9ec7f3a01794ebddcca676773e42ca48a32d67a250c9d35e009ca613caba3
languageName: node
linkType: hard

"estree-walker@npm:^3.0.3":
version: 3.0.3
resolution: "estree-walker@npm:3.0.3"
Expand Down Expand Up @@ -2209,15 +2197,14 @@ __metadata:
languageName: node
linkType: hard

"js-yaml@npm:^3.13.1, js-yaml@npm:^3.6.1":
version: 3.14.1
resolution: "js-yaml@npm:3.14.1"
"js-yaml@npm:^4.1.1":
version: 4.1.1
resolution: "js-yaml@npm:4.1.1"
dependencies:
argparse: "npm:^1.0.7"
esprima: "npm:^4.0.0"
argparse: "npm:^2.0.1"
bin:
js-yaml: bin/js-yaml.js
checksum: 10c0/6746baaaeac312c4db8e75fa22331d9a04cccb7792d126ed8ce6a0bbcfef0cedaddd0c5098fade53db067c09fe00aa1c957674b4765610a8b06a5a189e46433b
checksum: 10c0/561c7d7088c40a9bb53cc75becbfb1df6ae49b34b5e6e5a81744b14ae8667ec564ad2527709d1a6e7d5e5fa6d483aa0f373a50ad98d42fde368ec4a190d4fae7
languageName: node
linkType: hard

Expand Down Expand Up @@ -3017,13 +3004,6 @@ __metadata:
languageName: node
linkType: hard

"sprintf-js@npm:~1.0.2":
version: 1.0.3
resolution: "sprintf-js@npm:1.0.3"
checksum: 10c0/ecadcfe4c771890140da5023d43e190b7566d9cf8b2d238600f31bec0fc653f328da4450eb04bd59a431771a8e9cc0e118f0aa3974b683a4981b4e07abc2a5bb
languageName: node
linkType: hard

"ssri@npm:^12.0.0":
version: 12.0.0
resolution: "ssri@npm:12.0.0"
Expand Down