Skip to content

Commit 68d18e6

Browse files
Fix CVE-2024-39249: Force [email protected] via resolutions
The CVE-2024-39249 vulnerability was caused by older versions of async, which were being pulled by dependencies like http-server (via portfinder) and cypress (via getos). Since these dependencies have not yet updated to a secure version of async, this commit enforces [email protected] using the resolutions field in package.json as a temporary workaround. Added "async": "^3.2.6" in resolutions in package.json. Ran yarn install, updating yarn.lock accordingly. This resolution should be removed once upstream dependencies update async. Signed-off-by: Timothy Asir Jeyasingh <[email protected]>
1 parent 8483de2 commit 68d18e6

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"**/package.json": "npx --yes [email protected]"
6666
},
6767
"resolutions": {
68+
"async": "^3.2.6",
6869
"cross-spawn": "^7.0.6",
6970
"nanoid": "^3.3.8",
7071
"postcss": "^8.4.49",

yarn.lock

+5-12
Original file line numberDiff line numberDiff line change
@@ -4773,17 +4773,10 @@ astral-regex@^2.0.0:
47734773
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31"
47744774
integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==
47754775

4776-
async@^2.6.4:
4777-
version "2.6.4"
4778-
resolved "https://registry.yarnpkg.com/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221"
4779-
integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==
4780-
dependencies:
4781-
lodash "^4.17.14"
4782-
4783-
async@^3.2.0:
4784-
version "3.2.1"
4785-
resolved "https://registry.yarnpkg.com/async/-/async-3.2.1.tgz#d3274ec66d107a47476a4c49136aacdb00665fc8"
4786-
integrity sha512-XdD5lRO/87udXCMC9meWdYiR+Nq6ZjUfXidViUZGu2F1MO4T3XwZ1et0hb2++BgLfhyJwy44BGB/yx80ABx8hg==
4776+
async@^2.6.4, async@^3.2.0, async@^3.2.6:
4777+
version "3.2.6"
4778+
resolved "https://registry.yarnpkg.com/async/-/async-3.2.6.tgz#1b0728e14929d51b85b449b7f06e27c1145e38ce"
4779+
integrity sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==
47874780

47884781
asynckit@^0.4.0:
47894782
version "0.4.0"
@@ -10020,7 +10013,7 @@ lodash.truncate@^4.4.2:
1002010013
resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193"
1002110014
integrity sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=
1002210015

10023-
lodash@^4.17.14, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21:
10016+
lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21:
1002410017
version "4.17.21"
1002510018
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
1002610019
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==

0 commit comments

Comments
 (0)