Skip to content

Commit 172c1d8

Browse files
committed
fix: override form-data to resolve CRLF injection advisory
Pin form-data@4.0.6 for transitive deps from ibm-cloud-sdk-core and n8n-workflow, and extend the supply-chain check to verify the override is active.
1 parent 533df05 commit 172c1d8

3 files changed

Lines changed: 13 additions & 16 deletions

File tree

pnpm-lock.yaml

Lines changed: 3 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ overrides:
77
lodash: '4.18.1'
88
uuid: '11.1.1'
99
minimatch: '10.2.5'
10+
form-data: '4.0.6'
1011
# npm dist-tag stable; block 2.23+ beta-channel releases
1112
n8n-workflow: '2.22.3'
1213

scripts/check-supply-chain.mjs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,15 @@ function verifyActivePnpmConfig() {
148148
}
149149
}
150150

151-
if (!config.includes('lodash=') || !config.includes('uuid=') || !config.includes('minimatch=')) {
152-
errors.push('pnpm overrides for lodash/uuid/minimatch are not active — check pnpm-workspace.yaml');
151+
if (
152+
!config.includes('lodash=') ||
153+
!config.includes('uuid=') ||
154+
!config.includes('minimatch=') ||
155+
!config.includes('form-data=')
156+
) {
157+
errors.push(
158+
'pnpm overrides for lodash/uuid/minimatch/form-data are not active — check pnpm-workspace.yaml',
159+
);
153160
}
154161
} catch (error) {
155162
errors.push(`unable to read pnpm config: ${error.message}`);

0 commit comments

Comments
 (0)