Skip to content

Commit 04a2f67

Browse files
[BANK-5155] Fix Form Data Security Vulnerability (#401)
Most of the critical vulnerabilities were fixed in #400, but the form-data vulnerability was still present from a transitive dependency in `devtools/node/package.json` Adding a yarn resolution to the `package.json` to use a fixed version `3.0.4` fixes the issue, performed an audit locally to ensure the vulnerability is gone. This should unblock the [pipeline](https://github.com/circlefin/payments-sample-app-private/actions/runs/16831684848)
1 parent e2df5d1 commit 04a2f67

File tree

2 files changed

+127
-8
lines changed

2 files changed

+127
-8
lines changed

devtools/node/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@
2020
"dependencies": {
2121
"request": "^2.88.2",
2222
"sns-validator": "^0.3.4"
23+
},
24+
"resolutions": {
25+
"form-data": "3.0.4"
2326
}
2427
}

devtools/node/yarn.lock

Lines changed: 124 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,14 @@ brace-expansion@^1.1.7:
145145
balanced-match "^1.0.0"
146146
concat-map "0.0.1"
147147

148+
call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2:
149+
version "1.0.2"
150+
resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz#4b5428c222be985d79c3d82657479dbe0b59b2d6"
151+
integrity sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==
152+
dependencies:
153+
es-errors "^1.3.0"
154+
function-bind "^1.1.2"
155+
148156
call-bind@^1.0.0, call-bind@^1.0.2:
149157
version "1.0.2"
150158
resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c"
@@ -183,7 +191,7 @@ color-name@~1.1.4:
183191
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
184192
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
185193

186-
combined-stream@^1.0.6, combined-stream@~1.0.6:
194+
combined-stream@^1.0.8, combined-stream@~1.0.6:
187195
version "1.0.8"
188196
resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f"
189197
integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==
@@ -268,6 +276,15 @@ doctrine@^3.0.0:
268276
dependencies:
269277
esutils "^2.0.2"
270278

279+
dunder-proto@^1.0.1:
280+
version "1.0.1"
281+
resolved "https://registry.yarnpkg.com/dunder-proto/-/dunder-proto-1.0.1.tgz#d7ae667e1dc83482f8b70fd0f6eefc50da30f58a"
282+
integrity sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==
283+
dependencies:
284+
call-bind-apply-helpers "^1.0.1"
285+
es-errors "^1.3.0"
286+
gopd "^1.2.0"
287+
271288
ecc-jsbn@~0.1.1:
272289
version "0.1.2"
273290
resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9"
@@ -309,6 +326,33 @@ es-abstract@^1.19.0, es-abstract@^1.19.1:
309326
string.prototype.trimstart "^1.0.4"
310327
unbox-primitive "^1.0.1"
311328

329+
es-define-property@^1.0.1:
330+
version "1.0.1"
331+
resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.1.tgz#983eb2f9a6724e9303f61addf011c72e09e0b0fa"
332+
integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==
333+
334+
es-errors@^1.3.0:
335+
version "1.3.0"
336+
resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f"
337+
integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==
338+
339+
es-object-atoms@^1.0.0, es-object-atoms@^1.1.1:
340+
version "1.1.1"
341+
resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.1.1.tgz#1c4f2c4837327597ce69d2ca190a7fdd172338c1"
342+
integrity sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==
343+
dependencies:
344+
es-errors "^1.3.0"
345+
346+
es-set-tostringtag@^2.1.0:
347+
version "2.1.0"
348+
resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz#f31dbbe0c183b00a6d26eb6325c810c0fd18bd4d"
349+
integrity sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==
350+
dependencies:
351+
es-errors "^1.3.0"
352+
get-intrinsic "^1.2.6"
353+
has-tostringtag "^1.0.2"
354+
hasown "^2.0.2"
355+
312356
es-to-primitive@^1.2.1:
313357
version "1.2.1"
314358
resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a"
@@ -570,14 +614,16 @@ forever-agent@~0.6.1:
570614
resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91"
571615
integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=
572616

573-
form-data@~2.3.2:
574-
version "2.3.3"
575-
resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6"
576-
integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==
617+
form-data@3.0.4, form-data@~2.3.2:
618+
version "3.0.4"
619+
resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.4.tgz#938273171d3f999286a4557528ce022dc2c98df1"
620+
integrity sha512-f0cRzm6dkyVYV3nPoooP8XlccPQukegwhAnpoLcXy+X+A8KfpGOoXwDr9FLZd3wzgLaBGQBE3lY93Zm/i1JvIQ==
577621
dependencies:
578622
asynckit "^0.4.0"
579-
combined-stream "^1.0.6"
580-
mime-types "^2.1.12"
623+
combined-stream "^1.0.8"
624+
es-set-tostringtag "^2.1.0"
625+
hasown "^2.0.2"
626+
mime-types "^2.1.35"
581627

582628
fs.realpath@^1.0.0:
583629
version "1.0.0"
@@ -589,6 +635,11 @@ function-bind@^1.1.1:
589635
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
590636
integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==
591637

638+
function-bind@^1.1.2:
639+
version "1.1.2"
640+
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c"
641+
integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==
642+
592643
functional-red-black-tree@^1.0.1:
593644
version "1.0.1"
594645
resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327"
@@ -603,6 +654,30 @@ get-intrinsic@^1.0.2, get-intrinsic@^1.1.0, get-intrinsic@^1.1.1:
603654
has "^1.0.3"
604655
has-symbols "^1.0.1"
605656

657+
get-intrinsic@^1.2.6:
658+
version "1.3.0"
659+
resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz#743f0e3b6964a93a5491ed1bffaae054d7f98d01"
660+
integrity sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==
661+
dependencies:
662+
call-bind-apply-helpers "^1.0.2"
663+
es-define-property "^1.0.1"
664+
es-errors "^1.3.0"
665+
es-object-atoms "^1.1.1"
666+
function-bind "^1.1.2"
667+
get-proto "^1.0.1"
668+
gopd "^1.2.0"
669+
has-symbols "^1.1.0"
670+
hasown "^2.0.2"
671+
math-intrinsics "^1.1.0"
672+
673+
get-proto@^1.0.1:
674+
version "1.0.1"
675+
resolved "https://registry.yarnpkg.com/get-proto/-/get-proto-1.0.1.tgz#150b3f2743869ef3e851ec0c49d15b1d14d00ee1"
676+
integrity sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==
677+
dependencies:
678+
dunder-proto "^1.0.1"
679+
es-object-atoms "^1.0.0"
680+
606681
get-symbol-description@^1.0.0:
607682
version "1.0.0"
608683
resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6"
@@ -644,6 +719,11 @@ globals@^13.6.0, globals@^13.9.0:
644719
dependencies:
645720
type-fest "^0.20.2"
646721

722+
gopd@^1.2.0:
723+
version "1.2.0"
724+
resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1"
725+
integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==
726+
647727
har-schema@^2.0.0:
648728
version "2.0.0"
649729
resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92"
@@ -677,20 +757,39 @@ has-symbols@^1.0.2:
677757
resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.2.tgz#165d3070c00309752a1236a479331e3ac56f1423"
678758
integrity sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==
679759

760+
has-symbols@^1.0.3, has-symbols@^1.1.0:
761+
version "1.1.0"
762+
resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.1.0.tgz#fc9c6a783a084951d0b971fe1018de813707a338"
763+
integrity sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==
764+
680765
has-tostringtag@^1.0.0:
681766
version "1.0.0"
682767
resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25"
683768
integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==
684769
dependencies:
685770
has-symbols "^1.0.2"
686771

772+
has-tostringtag@^1.0.2:
773+
version "1.0.2"
774+
resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz#2cdc42d40bef2e5b4eeab7c01a73c54ce7ab5abc"
775+
integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==
776+
dependencies:
777+
has-symbols "^1.0.3"
778+
687779
has@^1.0.3:
688780
version "1.0.3"
689781
resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796"
690782
integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==
691783
dependencies:
692784
function-bind "^1.1.1"
693785

786+
hasown@^2.0.2:
787+
version "2.0.2"
788+
resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003"
789+
integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==
790+
dependencies:
791+
function-bind "^1.1.2"
792+
694793
http-signature@~1.2.0:
695794
version "1.2.0"
696795
resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1"
@@ -959,12 +1058,29 @@ lru-cache@^6.0.0:
9591058
dependencies:
9601059
yallist "^4.0.0"
9611060

1061+
math-intrinsics@^1.1.0:
1062+
version "1.1.0"
1063+
resolved "https://registry.yarnpkg.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz#a0dd74be81e2aa5c2f27e65ce283605ee4e2b7f9"
1064+
integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==
1065+
9621066
mime-db@1.44.0:
9631067
version "1.44.0"
9641068
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.44.0.tgz#fa11c5eb0aca1334b4233cb4d52f10c5a6272f92"
9651069
integrity sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==
9661070

967-
mime-types@^2.1.12, mime-types@~2.1.19:
1071+
mime-db@1.52.0:
1072+
version "1.52.0"
1073+
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70"
1074+
integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==
1075+
1076+
mime-types@^2.1.35:
1077+
version "2.1.35"
1078+
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a"
1079+
integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==
1080+
dependencies:
1081+
mime-db "1.52.0"
1082+
1083+
mime-types@~2.1.19:
9681084
version "2.1.27"
9691085
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.27.tgz#47949f98e279ea53119f5722e0f34e529bec009f"
9701086
integrity sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==

0 commit comments

Comments
 (0)