@openrewrite/recipes-nodejs 0.72.0 → 0.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/migrate/aws-sdk-smithy/aws-sdk-smithy-support.d.ts +11 -0
- package/dist/migrate/aws-sdk-smithy/aws-sdk-smithy-support.d.ts.map +1 -0
- package/dist/migrate/aws-sdk-smithy/aws-sdk-smithy-support.js +44 -0
- package/dist/migrate/aws-sdk-smithy/aws-sdk-smithy-support.js.map +1 -0
- package/dist/migrate/aws-sdk-smithy/keep-aws-sdk-retry-attempts.d.ts +19 -0
- package/dist/migrate/aws-sdk-smithy/keep-aws-sdk-retry-attempts.d.ts.map +1 -0
- package/dist/migrate/aws-sdk-smithy/keep-aws-sdk-retry-attempts.js +195 -0
- package/dist/migrate/aws-sdk-smithy/keep-aws-sdk-retry-attempts.js.map +1 -0
- package/dist/migrate/aws-sdk-smithy/keep-node-http-handler-idle-timeout.d.ts +9 -0
- package/dist/migrate/aws-sdk-smithy/keep-node-http-handler-idle-timeout.d.ts.map +1 -0
- package/dist/migrate/aws-sdk-smithy/keep-node-http-handler-idle-timeout.js +101 -0
- package/dist/migrate/aws-sdk-smithy/keep-node-http-handler-idle-timeout.js.map +1 -0
- package/dist/migrate/aws-sdk-smithy/migrate-aws-sdk-packages-to-smithy.d.ts +10 -0
- package/dist/migrate/aws-sdk-smithy/migrate-aws-sdk-packages-to-smithy.d.ts.map +1 -0
- package/dist/migrate/aws-sdk-smithy/migrate-aws-sdk-packages-to-smithy.js +43 -0
- package/dist/migrate/aws-sdk-smithy/migrate-aws-sdk-packages-to-smithy.js.map +1 -0
- package/dist/migrate/aws-sdk-smithy/replace-aws-sdk-smithy-imports.d.ts +9 -0
- package/dist/migrate/aws-sdk-smithy/replace-aws-sdk-smithy-imports.d.ts.map +1 -0
- package/dist/migrate/aws-sdk-smithy/replace-aws-sdk-smithy-imports.js +144 -0
- package/dist/migrate/aws-sdk-smithy/replace-aws-sdk-smithy-imports.js.map +1 -0
- package/dist/migrate/aws-sdk-smithy/smithy-twins.d.ts +7 -0
- package/dist/migrate/aws-sdk-smithy/smithy-twins.d.ts.map +1 -0
- package/dist/migrate/aws-sdk-smithy/smithy-twins.js +334 -0
- package/dist/migrate/aws-sdk-smithy/smithy-twins.js.map +1 -0
- package/dist/migrate/aws-sdk-smithy/swap-aws-sdk-smithy-dependencies.d.ts +36 -0
- package/dist/migrate/aws-sdk-smithy/swap-aws-sdk-smithy-dependencies.d.ts.map +1 -0
- package/dist/migrate/aws-sdk-smithy/swap-aws-sdk-smithy-dependencies.js +290 -0
- package/dist/migrate/aws-sdk-smithy/swap-aws-sdk-smithy-dependencies.js.map +1 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-node-support.d.ts +1 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-node-support.d.ts.map +1 -1
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-node-support.js +7 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-node-support.js.map +1 -1
- package/dist/migrate/fs-stats-constructor.d.ts.map +1 -1
- package/dist/migrate/fs-stats-constructor.js +2 -4
- package/dist/migrate/fs-stats-constructor.js.map +1 -1
- package/dist/migrate/process-exit-code.d.ts.map +1 -1
- package/dist/migrate/process-exit-code.js +11 -13
- package/dist/migrate/process-exit-code.js.map +1 -1
- package/dist/resources/advisories-npm.csv +73 -4
- package/package.json +2 -2
- package/src/index.ts +9 -0
- package/src/migrate/aws-sdk-smithy/aws-sdk-smithy-support.ts +66 -0
- package/src/migrate/aws-sdk-smithy/keep-aws-sdk-retry-attempts.ts +151 -0
- package/src/migrate/aws-sdk-smithy/keep-node-http-handler-idle-timeout.ts +89 -0
- package/src/migrate/aws-sdk-smithy/migrate-aws-sdk-packages-to-smithy.ts +33 -0
- package/src/migrate/aws-sdk-smithy/replace-aws-sdk-smithy-imports.ts +99 -0
- package/src/migrate/aws-sdk-smithy/smithy-twins.ts +346 -0
- package/src/migrate/aws-sdk-smithy/swap-aws-sdk-smithy-dependencies.ts +252 -0
- package/src/migrate/aws-sdk-v3/aws-sdk-v3-node-support.ts +10 -0
- package/src/migrate/aws-sdk-v3/aws-sdk-v3-support.ts +0 -1
- package/src/migrate/fs-stats-constructor.ts +4 -5
- package/src/migrate/process-exit-code.ts +10 -11
- package/src/migrate/vite/find-vite-changes.ts +0 -1
|
@@ -4894,6 +4894,8 @@ CVE-2026-107832,2026-10-22T16:40:35Z,"fastify is vulnerable to header validation
|
|
|
4894
4894
|
CVE-2026-107846,2026-11-10T15:57:25Z,"bitcoinjs-lib: Undetected merkle node duplication in block root computation validates a forged transaction list",bitcoinjs-lib,2.3.0,5.2.1,,CRITICAL,CWE-354,
|
|
4895
4895
|
CVE-2026-107846,2026-11-10T15:57:25Z,"bitcoinjs-lib: Undetected merkle node duplication in block root computation validates a forged transaction list",bitcoinjs-lib,6.0.0,6.1.8,,CRITICAL,CWE-354,
|
|
4896
4896
|
CVE-2026-107846,2026-11-10T15:57:25Z,"bitcoinjs-lib: Undetected merkle node duplication in block root computation validates a forged transaction list",bitcoinjs-lib,7.0.0-rc.0,7.0.2,,CRITICAL,CWE-354,
|
|
4897
|
+
CVE-2026-107853,2026-11-19T22:43:45Z,"tiny-secp256k1: Stale buffer after ignored wasm failure accepts invalid infinity tweak","@bitcoin-js/tiny-secp256k1-asmjs",2.2.2,2.2.5,,MODERATE,CWE-252,
|
|
4898
|
+
CVE-2026-107853,2026-11-19T22:43:45Z,"tiny-secp256k1: Stale buffer after ignored wasm failure accepts invalid infinity tweak",tiny-secp256k1,2.1.0,2.2.5,,MODERATE,CWE-252,
|
|
4897
4899
|
CVE-2026-10802,2026-06-04T12:30:26Z,"Keystone: GraphQL API Endpoint Lacks Query Depth Limits",@keystone-6/core,0,,6.5.3,LOW,CWE-400,
|
|
4898
4900
|
CVE-2026-108259,2026-10-09T20:56:52Z,"Tina: Code injection via unescaped Git branch name in generated client source",@tinacms/cli,0,3.0.0,,HIGH,CWE-94,
|
|
4899
4901
|
CVE-2026-108260,2026-10-09T20:56:45Z,"@tinacms/web-components: `tina-markdown` writes rich-text link URLs into `href` without scheme validation, allowing stored XSS",@tinacms/web-components,0,0.2.1,,HIGH,CWE-79;CWE-83,
|
|
@@ -4931,6 +4933,7 @@ CVE-2026-110644,2026-10-14T15:32:28Z,"nodejs-whisper allows OS command injection
|
|
|
4931
4933
|
CVE-2026-110725,2026-10-23T21:36:40Z,"fast-uri vulnerable to scheme injection via an unescaped first-segment colon in suffix references",fast-uri,0,2.4.8,,LOW,CWE-116;CWE-41,
|
|
4932
4934
|
CVE-2026-110725,2026-10-23T21:36:40Z,"fast-uri vulnerable to scheme injection via an unescaped first-segment colon in suffix references",fast-uri,3.0.0,3.1.9,,LOW,CWE-116;CWE-41,
|
|
4933
4935
|
CVE-2026-110725,2026-10-23T21:36:40Z,"fast-uri vulnerable to scheme injection via an unescaped first-segment colon in suffix references",fast-uri,4.0.0,4.2.3,,LOW,CWE-116;CWE-41,
|
|
4936
|
+
CVE-2026-110789,2026-11-17T21:05:08Z,"libp2p: ASN.1 DER decoder drives an unbounded synchronous loop on attacker-controlled length fields, stalling the Node event loop pre-auth",@libp2p/crypto,0,5.1.22,,HIGH,CWE-130;CWE-400,
|
|
4934
4937
|
CVE-2026-110802,2026-11-10T15:57:27Z,"Altair: DOM-based XSS via attacker-controlled script URLs in the iframe sandbox","altair-express-middleware",7.2.4,8.5.8,,MODERATE,CWE-79;CWE-829,
|
|
4935
4938
|
CVE-2026-110802,2026-11-10T15:57:27Z,"Altair: DOM-based XSS via attacker-controlled script URLs in the iframe sandbox",altair-fastify-plugin,7.2.4,8.5.8,,MODERATE,CWE-79;CWE-829,
|
|
4936
4939
|
CVE-2026-110802,2026-11-10T15:57:27Z,"Altair: DOM-based XSS via attacker-controlled script URLs in the iframe sandbox",altair-koa-middleware,7.2.4,8.5.8,,MODERATE,CWE-79;CWE-829,
|
|
@@ -4972,6 +4975,7 @@ CVE-2026-111771,2026-10-20T19:43:36Z,"MCP TypeScript SDK: Server bearer authenti
|
|
|
4972
4975
|
CVE-2026-111771,2026-10-20T19:43:36Z,"MCP TypeScript SDK: Server bearer authentication accepted tokens issued for another service","@modelcontextprotocol/server",2.0.0,2.3.0,,MODERATE,CWE-863,
|
|
4973
4976
|
CVE-2026-111771,2026-10-20T19:43:36Z,"MCP TypeScript SDK: Server bearer authentication accepted tokens issued for another service","@modelcontextprotocol/server-legacy",2.0.0,2.3.1,,MODERATE,CWE-863,
|
|
4974
4977
|
CVE-2026-111997,2026-10-22T16:19:39Z,"ip-address: Address6 matches a zone identifier in quadratic time ahead of its length limit, allowing a single long string to stall the process",ip-address,0,10.7.4,,MODERATE,CWE-1333,
|
|
4978
|
+
CVE-2026-112366,2026-10-19T18:32:12Z,"Withdrawn Advisory: picomatch vulnerable to ReDoS through single-branch repeated extglobs",picomatch,0,,4.0.7,HIGH,CWE-1333,
|
|
4975
4979
|
CVE-2026-112942,2026-10-20T19:48:25Z,"launch-editor: `fs.existsSync()` existence check can be bypassed on Windows",launch-editor,0,2.14.2,,HIGH,CWE-77,
|
|
4976
4980
|
CVE-2026-112942,2026-10-20T19:48:25Z,"launch-editor: `fs.existsSync()` existence check can be bypassed on Windows",vite,0,6.4.4,,HIGH,CWE-77,
|
|
4977
4981
|
CVE-2026-112942,2026-10-20T19:48:25Z,"launch-editor: `fs.existsSync()` existence check can be bypassed on Windows",vite,7.0.0,7.3.7,,HIGH,CWE-77,
|
|
@@ -5133,6 +5137,7 @@ CVE-2026-114142,2026-10-22T16:39:55Z,"toml-node: Prototype pollution: parsing a
|
|
|
5133
5137
|
CVE-2026-114143,2026-10-22T16:38:06Z,"toml-node: Quadratic-complexity DoS via long dotted keys or table paths in toml.parse()",toml,0,5.0.1,,HIGH,CWE-407,
|
|
5134
5138
|
CVE-2026-114144,2026-10-22T16:36:50Z,"toml-node: Uncontrolled resource consumption (CPU DoS) via unbounded-length integer literals in toml.parse()",toml,0,5.0.1,,HIGH,CWE-400;CWE-770,
|
|
5135
5139
|
CVE-2026-11417,2026-06-15T20:47:36Z,"aws-cdk-lib: OS Command Injection in NodejsFunction Bundling",aws-cdk-lib,0,2.246.0,,HIGH,CWE-78,
|
|
5140
|
+
CVE-2026-114516,2026-11-20T00:23:45Z,"Etherpad: Pre-auth arbitrary file read",ep_etherpad-lite,1.8.14,3.3.3,,CRITICAL,CWE-200;CWE-22;CWE-306,
|
|
5136
5141
|
CVE-2026-114604,2026-10-22T16:28:31Z,"GraphQL Tools: Prototype pollution in mergeIncrementalResult via non-primitive path segments",@graphql-tools/utils,10.10.1,12.0.2,,HIGH,CWE-1321,
|
|
5137
5142
|
CVE-2026-114607,2026-10-27T15:32:05Z,"better-auth: OAuth state can be used as a Magic Link to sign in as another user",better-auth,1.4.0-beta.18,1.7.7,,CRITICAL,CWE-287,
|
|
5138
5143
|
CVE-2026-11525,2026-06-19T14:34:46Z,"undici vulnerable to Set-Cookie SameSite attribute downgrade via permissive substring matching",undici,0,6.27.0,,LOW,CWE-183,
|
|
@@ -5277,6 +5282,17 @@ CVE-2026-119282,2026-10-30T14:42:14Z,"@nx/maven and @nx/gradle have OS command i
|
|
|
5277
5282
|
CVE-2026-119282,2026-10-30T14:42:14Z,"@nx/maven and @nx/gradle have OS command injection via nx.json plugin options",@nx/gradle,23.0.0,23.1.2,,HIGH,CWE-78;CWE-88,
|
|
5278
5283
|
CVE-2026-119282,2026-10-30T14:42:14Z,"@nx/maven and @nx/gradle have OS command injection via nx.json plugin options",@nx/maven,22.0.2,22.7.9,,HIGH,CWE-78;CWE-88,
|
|
5279
5284
|
CVE-2026-119282,2026-10-30T14:42:14Z,"@nx/maven and @nx/gradle have OS command injection via nx.json plugin options",@nx/maven,23.0.0,23.1.2,,HIGH,CWE-78;CWE-88,
|
|
5285
|
+
CVE-2026-119346,2026-11-19T22:23:21Z,"Next.js: HttpOnly cookie exposure through internal response header on Next.js Edge runtime routes",next,15.0.0,15.5.29,,MODERATE,CWE-200;CWE-201,
|
|
5286
|
+
CVE-2026-119346,2026-11-19T22:23:21Z,"Next.js: HttpOnly cookie exposure through internal response header on Next.js Edge runtime routes",next,16.0.0,16.4.5,,MODERATE,CWE-200;CWE-201,
|
|
5287
|
+
CVE-2026-119347,2026-11-19T22:23:06Z,"Next.js: SVG rejection bypass in the image optimization",next,15.0.0,15.5.29,,MODERATE,CWE-1287,
|
|
5288
|
+
CVE-2026-119347,2026-11-19T22:23:06Z,"Next.js: SVG rejection bypass in the image optimization",next,16.0.0,16.4.5,,MODERATE,CWE-1287,
|
|
5289
|
+
CVE-2026-119348,2026-11-19T22:20:34Z,"Next.js: Cross-client response injection and disclosure in self-hosted Next.js applications forwarding fetched responses",next,0,15.5.29,,MODERATE,CWE-444,
|
|
5290
|
+
CVE-2026-119348,2026-11-19T22:20:34Z,"Next.js: Cross-client response injection and disclosure in self-hosted Next.js applications forwarding fetched responses",next,16.0.0,16.4.5,,MODERATE,CWE-444,
|
|
5291
|
+
CVE-2026-119349,2026-11-19T22:20:11Z,"Next.js: Cross-user cache disclosure and poisoning in Next.js use cache with binary arguments",next,16.0.0,16.4.5,,MODERATE,CWE-694,
|
|
5292
|
+
CVE-2026-119350,2026-11-19T22:18:08Z,"Next.js: Cache poisoning of shared fallback shells in Cache Components via request-supplied placeholder route params",next,16.4.0,16.4.5,,MODERATE,CWE-349,
|
|
5293
|
+
CVE-2026-119351,2026-11-17T16:13:26Z,"Next.js: Cache leak across root param values in nested 'use cache' functions via delayed inner stream metadata",next,16.2.0,16.4.5,,MODERATE,CWE-362,
|
|
5294
|
+
CVE-2026-119790,2026-11-16T18:51:22Z,"Next.js: Information disclosure across root params when a 'use cache' function is called through unstable_cache()",next,16.3.0,16.4.5,,MODERATE,CWE-362,
|
|
5295
|
+
CVE-2026-119793,2026-11-17T21:06:20Z,"libp2p: gossipsub creates a permanent topics-map entry per distinct subscription with no cap in the default config",@libp2p/gossipsub,0,17.0.0,,HIGH,CWE-400;CWE-770,
|
|
5280
5296
|
CVE-2026-11998,2026-06-24T21:30:44Z,"Angular's deprecated package has a Cross-Site Scripting issue",angular,1.2.0-rc.3,,1.8.3,HIGH,CWE-79;CWE-791,
|
|
5281
5297
|
CVE-2026-120778,2026-11-11T00:30:06Z,"Microsoft Security Advisory CVE-2026-120778 - Aspire Elevation of Privilege Vulnerability","@microsoft/aspire-cli-linux-arm64",13.4.2,13.6.5,,HIGH,CWE-379,
|
|
5282
5298
|
CVE-2026-120778,2026-11-11T00:30:06Z,"Microsoft Security Advisory CVE-2026-120778 - Aspire Elevation of Privilege Vulnerability","@microsoft/aspire-cli-linux-musl-x64",13.4.2,13.6.5,,HIGH,CWE-379,
|
|
@@ -5296,6 +5312,7 @@ CVE-2026-12143,2026-06-15T17:26:26Z,"form-data: CRLF injection in form-data via
|
|
|
5296
5312
|
CVE-2026-12151,2026-06-19T14:22:01Z,"undici WebSocket client vulnerable to denial of service via fragment count bypass",undici,0,6.27.0,,HIGH,CWE-400;CWE-770,
|
|
5297
5313
|
CVE-2026-12151,2026-06-19T14:22:01Z,"undici WebSocket client vulnerable to denial of service via fragment count bypass",undici,7.0.0,7.28.0,,HIGH,CWE-400;CWE-770,
|
|
5298
5314
|
CVE-2026-12151,2026-06-19T14:22:01Z,"undici WebSocket client vulnerable to denial of service via fragment count bypass",undici,8.0.0,8.5.0,,HIGH,CWE-400;CWE-770,
|
|
5315
|
+
CVE-2026-121707,2026-11-19T20:51:01Z,"Effect: ReDoS in Schema.TemplateLiteral compiled regex",effect,0,3.22.1,,HIGH,CWE-1333,
|
|
5299
5316
|
CVE-2026-12208,2026-06-15T03:30:32Z,"jsonata: Function Binding Prototype Pollution via hasOwnProperty Override",jsonata,0,1.8.8,,MODERATE,CWE-94,
|
|
5300
5317
|
CVE-2026-12208,2026-06-15T03:30:32Z,"jsonata: Function Binding Prototype Pollution via hasOwnProperty Override",jsonata,2.0.0,2.2.1,,MODERATE,CWE-94,
|
|
5301
5318
|
CVE-2026-123807,2026-10-30T22:57:22Z,"Signal K resources API path traversal can disclose the JWT signing secret and enable remote code execution","@signalk/resources-provider",1.0.0,1.5.3,,CRITICAL,CWE-22,
|
|
@@ -5358,6 +5375,7 @@ CVE-2026-126356,2026-11-12T23:30:45Z,"Hono: `validator('form')` skips validation
|
|
|
5358
5375
|
CVE-2026-126357,2026-11-12T23:24:11Z,"Hono: `mount()` and `app.mount()` can forward a path that bypasses middleware scoped inside the mount prefix",hono,0,4.13.16,,MODERATE,CWE-288,
|
|
5359
5376
|
CVE-2026-126358,2026-11-12T23:23:30Z,"Hono: RegExpRouter skips wildcard middleware for some route sets and for paths with an encoded line terminator",hono,4.1.4,4.13.16,,MODERATE,CWE-863,
|
|
5360
5377
|
CVE-2026-126359,2026-11-12T23:22:36Z,"Hono: `css` helper does not escape a closing tag split between the template and an interpolated value, allowing HTML injection",hono,3.12.0,4.13.16,,LOW,CWE-79,
|
|
5378
|
+
CVE-2026-126361,2026-11-13T18:39:54Z,"Astro: XSS via attribute injection in dynamic tag names",astro,0,7.4.5,,LOW,CWE-184;CWE-79,
|
|
5361
5379
|
CVE-2026-126362,2026-11-12T22:34:04Z,"Astro: Reflected XSS via unescaped slot names in @astrojs/svelte",@astrojs/svelte,5.7.3,9.1.2,,LOW,CWE-79,
|
|
5362
5380
|
CVE-2026-126363,2026-11-12T22:34:44Z,"Astro: Reflected XSS via unescaped slot names in @astrojs/solid-js",@astrojs/solid-js,0.2.0,7.1.2,,LOW,CWE-79,
|
|
5363
5381
|
CVE-2026-126364,2026-11-13T18:35:59Z,"Astro: Image endpoint in @astrojs/node can read files from a case-variant sibling of the output directory on case-sensitive filesystems",@astrojs/node,0,,11.1.11,MODERATE,CWE-178;CWE-22,
|
|
@@ -5367,7 +5385,41 @@ CVE-2026-126367,2026-11-12T23:21:57Z,"@grpc/grpc-js: safe_regex incorrectly appl
|
|
|
5367
5385
|
CVE-2026-12644,2026-06-19T06:31:56Z,"ts-deepmerge: Prototype Method Override leads to DoS",ts-deepmerge,0,8.0.0,,MODERATE,CWE-248,
|
|
5368
5386
|
CVE-2026-128065,2026-11-12T22:55:47Z,"@grpc/grpc-js: RBAC override configs in VirtualHost and Route resources are not applied",@grpc/grpc-js-xds,1.14.0,1.14.2,,MODERATE,CWE-863,
|
|
5369
5387
|
CVE-2026-128070,2026-11-13T18:11:49Z,"Nuxt dev server serves files from a parent directory with a stray lockfile or workspace file",@nuxt/schema,3.5.0,4.6.4,,MODERATE,CWE-552,
|
|
5388
|
+
CVE-2026-128071,2026-11-16T14:59:45Z,"Nuxt: Incomplete fix for GHSA-6gq8-jgmh-3ffp: an encoded slash (`%2F`) in the request path bypasses route rules on catch-all page routes",@nuxt/nitro-server,3.20.0,,,MODERATE,CWE-436;CWE-863,
|
|
5389
|
+
CVE-2026-128071,2026-11-16T14:59:45Z,"Nuxt: Incomplete fix for GHSA-6gq8-jgmh-3ffp: an encoded slash (`%2F`) in the request path bypasses route rules on catch-all page routes",@nuxt/nitro-server,4.2.0,4.6.4,,MODERATE,CWE-436;CWE-863,
|
|
5390
|
+
CVE-2026-128071,2026-11-16T14:59:45Z,"Nuxt: Incomplete fix for GHSA-6gq8-jgmh-3ffp: an encoded slash (`%2F`) in the request path bypasses route rules on catch-all page routes",@nuxt/vite-server,4.6.0,4.6.4,,MODERATE,CWE-436;CWE-863,
|
|
5391
|
+
CVE-2026-128071,2026-11-16T14:59:45Z,"Nuxt: Incomplete fix for GHSA-6gq8-jgmh-3ffp: an encoded slash (`%2F`) in the request path bypasses route rules on catch-all page routes",nuxt,3.0.0,,,MODERATE,CWE-436;CWE-863,
|
|
5392
|
+
CVE-2026-128071,2026-11-16T14:59:45Z,"Nuxt: Incomplete fix for GHSA-6gq8-jgmh-3ffp: an encoded slash (`%2F`) in the request path bypasses route rules on catch-all page routes",nuxt,4.0.0,4.6.4,,MODERATE,CWE-436;CWE-863,
|
|
5393
|
+
CVE-2026-128072,2026-11-16T15:00:09Z,"@nuxt/webpack-builder and @nuxt/rspack-builder dev server serves built source to DNS rebinding pages",@nuxt/rspack-builder,3.12.2,,,LOW,CWE-346,
|
|
5394
|
+
CVE-2026-128072,2026-11-16T15:00:09Z,"@nuxt/webpack-builder and @nuxt/rspack-builder dev server serves built source to DNS rebinding pages",@nuxt/rspack-builder,4.0.0,4.6.4,,LOW,CWE-346,
|
|
5395
|
+
CVE-2026-128072,2026-11-16T15:00:09Z,"@nuxt/webpack-builder and @nuxt/rspack-builder dev server serves built source to DNS rebinding pages",@nuxt/webpack-builder,3.0.0,,,LOW,CWE-346,
|
|
5396
|
+
CVE-2026-128072,2026-11-16T15:00:09Z,"@nuxt/webpack-builder and @nuxt/rspack-builder dev server serves built source to DNS rebinding pages",@nuxt/webpack-builder,4.0.0,4.6.4,,LOW,CWE-346,
|
|
5397
|
+
CVE-2026-128074,2026-11-16T15:00:41Z,"Nuxt payload URL generation has quadratic cost for repeated slashes in the request path",nuxt,4.6.0,4.6.4,,MODERATE,CWE-1333,
|
|
5398
|
+
CVE-2026-128075,2026-11-16T15:01:26Z,"Nuxt exposes the message and data of unhandled errors thrown during server rendering",nuxt,3.0.0,,,MODERATE,CWE-209,
|
|
5399
|
+
CVE-2026-128075,2026-11-16T15:01:26Z,"Nuxt exposes the message and data of unhandled errors thrown during server rendering",nuxt,4.0.0,4.6.4,,MODERATE,CWE-209,
|
|
5400
|
+
CVE-2026-128076,2026-11-16T15:02:22Z,"Nuxt: Colliding island props can share one `/__nuxt_island` path (incomplete fix for CVE-2026-46342)",@nuxt/nitro-server,3.21.6,,,LOW,CWE-116;CWE-349,
|
|
5401
|
+
CVE-2026-128076,2026-11-16T15:02:22Z,"Nuxt: Colliding island props can share one `/__nuxt_island` path (incomplete fix for CVE-2026-46342)",@nuxt/nitro-server,4.4.6,4.6.4,,LOW,CWE-116;CWE-349,
|
|
5402
|
+
CVE-2026-128076,2026-11-16T15:02:22Z,"Nuxt: Colliding island props can share one `/__nuxt_island` path (incomplete fix for CVE-2026-46342)",nuxt,3.21.6,,,LOW,CWE-116;CWE-349,
|
|
5403
|
+
CVE-2026-128076,2026-11-16T15:02:22Z,"Nuxt: Colliding island props can share one `/__nuxt_island` path (incomplete fix for CVE-2026-46342)",nuxt,4.4.6,4.6.4,,LOW,CWE-116;CWE-349,
|
|
5404
|
+
CVE-2026-128077,2026-11-13T19:32:21Z,"Nuxt: Incomplete fix for GHSA-9v7c-q64q-vv33: a leading `//` in the request path bypasses `server/middleware` path checks and server route rules on page routes",@nuxt/nitro-server,4.6.0,4.6.4,,MODERATE,CWE-436;CWE-863,
|
|
5405
|
+
CVE-2026-128080,2026-11-13T19:29:20Z,"OpenTelemetry JavaScript: Insertion of Sensitive Information into Log File and Exposure of Sensitive Information to an Unauthorized Actor in @opentelemetry/instrumentation-http","@opentelemetry/instrumentation-http",0.204.0,0.222.0,,MODERATE,CWE-200;CWE-532,
|
|
5406
|
+
CVE-2026-128116,2026-11-16T14:48:54Z,"SvelteKit: Protocol-relative module import during server-side route resolution allows cross-origin script execution",@sveltejs/kit,0,2.70.4,,MODERATE,CWE-79,
|
|
5407
|
+
CVE-2026-128116,2026-11-16T14:48:54Z,"SvelteKit: Protocol-relative module import during server-side route resolution allows cross-origin script execution",@sveltejs/kit,3.0.0,3.1.1,,MODERATE,CWE-79,
|
|
5408
|
+
CVE-2026-128117,2026-11-13T20:51:44Z,"SvelteKit: adapter-node crashes with an unhandled URIError when `reroute` rewrites malformed pathnames",@sveltejs/kit,0,2.70.4,,MODERATE,CWE-248,
|
|
5409
|
+
CVE-2026-128117,2026-11-13T20:51:44Z,"SvelteKit: adapter-node crashes with an unhandled URIError when `reroute` rewrites malformed pathnames",@sveltejs/kit,3.0.0,3.1.1,,MODERATE,CWE-248,
|
|
5410
|
+
CVE-2026-128118,2026-11-16T14:59:00Z,"SvelteKit: Build-time server-only module import guard could fail, resulting in server secrets being statically replaced in client bundle",@sveltejs/kit,3.0.0,3.1.1,,HIGH,CWE-200;CWE-668,
|
|
5411
|
+
CVE-2026-128119,2026-11-16T14:49:03Z,"SvelteKit: Private `query.batch` functions could collide, producing unexpected parameter / function combinations",@sveltejs/kit,2.60.1,3.1.1,,MODERATE,CWE-863,
|
|
5412
|
+
CVE-2026-128120,2026-11-16T14:57:35Z,"SvelteKit: DoS while parsing form data from a remote functions `form`",@sveltejs/kit,2.42.0,3.1.1,,HIGH,CWE-407,
|
|
5413
|
+
CVE-2026-128121,2026-11-13T20:43:23Z,"SvelteKit: Prerendered paths are interpreted as regular expressions in Vercel route config generated by @sveltejs/adapter-vercel and @sveltejs/adapter-static",@sveltejs/adapter-static,0,3.0.11,,MODERATE,CWE-116;CWE-625,
|
|
5414
|
+
CVE-2026-128121,2026-11-13T20:43:23Z,"SvelteKit: Prerendered paths are interpreted as regular expressions in Vercel route config generated by @sveltejs/adapter-vercel and @sveltejs/adapter-static",@sveltejs/adapter-static,4.0.0-next.0,4.0.1,,MODERATE,CWE-116;CWE-625,
|
|
5415
|
+
CVE-2026-128121,2026-11-13T20:43:23Z,"SvelteKit: Prerendered paths are interpreted as regular expressions in Vercel route config generated by @sveltejs/adapter-vercel and @sveltejs/adapter-static",@sveltejs/adapter-vercel,0,6.3.5,,MODERATE,CWE-116;CWE-625,
|
|
5416
|
+
CVE-2026-128121,2026-11-13T20:43:23Z,"SvelteKit: Prerendered paths are interpreted as regular expressions in Vercel route config generated by @sveltejs/adapter-vercel and @sveltejs/adapter-static",@sveltejs/adapter-vercel,7.0.0-next.0,7.0.2,,MODERATE,CWE-116;CWE-625,
|
|
5417
|
+
CVE-2026-128122,2026-11-13T20:39:15Z,"SvelteKit: Prerendered redirect paths can inject arbitrary rules into the `_redirects` file generated by `@sveltejs/adapter-cloudflare`","@sveltejs/adapter-cloudflare",4.7.0,7.2.10,,MODERATE,CWE-116;CWE-79;CWE-93,
|
|
5418
|
+
CVE-2026-128122,2026-11-13T20:39:15Z,"SvelteKit: Prerendered redirect paths can inject arbitrary rules into the `_redirects` file generated by `@sveltejs/adapter-cloudflare`","@sveltejs/adapter-cloudflare",8.0.0-next.0,8.0.2,,MODERATE,CWE-116;CWE-79;CWE-93,
|
|
5419
|
+
CVE-2026-128123,2026-11-13T20:36:53Z,"SvelteKit: `@sveltejs/adapter-node` crashes when proxying certain requests via `fetch`",@sveltejs/adapter-node,5.5.7,5.5.8,,MODERATE,CWE-248,
|
|
5420
|
+
CVE-2026-128123,2026-11-13T20:36:53Z,"SvelteKit: `@sveltejs/adapter-node` crashes when proxying certain requests via `fetch`",@sveltejs/adapter-node,6.0.0-next.0,6.0.1,,MODERATE,CWE-248,
|
|
5370
5421
|
CVE-2026-12866,2026-06-23T06:30:41Z,"expr-eval vulnerable to Code Execution",expr-eval,0,,2.0.2,CRITICAL,CWE-94,
|
|
5422
|
+
CVE-2026-129239,2026-11-16T22:25:53Z,"Directus: Share update allows reassigning user_created and role",directus,0,12.3.1,,MODERATE,CWE-269;CWE-863,
|
|
5371
5423
|
CVE-2026-12957,2026-09-24T19:13:53Z,"Language Servers for AWS Vulnerable to Arbitrary Code Execution",@aws/lsp-codewhisperer,0,0.0.113,,HIGH,CWE-732,
|
|
5372
5424
|
CVE-2026-12958,2026-09-24T19:15:39Z,"Language Servers for AWS vulnerable to arbitrary file write",@aws/lsp-codewhisperer,0,0.0.117,,HIGH,CWE-61,
|
|
5373
5425
|
CVE-2026-13149,2026-07-20T20:51:09Z,"brace-expansion: DoS via exponential-time expansion of consecutive non-expanding {} groups",brace-expansion,0,1.1.16,,HIGH,CWE-400;CWE-407,
|
|
@@ -6923,7 +6975,8 @@ CVE-2026-41591,2026-04-22T19:55:51Z,"Marko: XSS via case-insensitive script/styl
|
|
|
6923
6975
|
CVE-2026-41636,2026-04-28T12:31:30Z,"Apache Thrift Node.js bindings vulnerable to Uncontrolled Recursion",thrift,0,0.23.0,,HIGH,CWE-674,
|
|
6924
6976
|
CVE-2026-41640,2026-04-22T20:09:02Z,"@nocobase/database has SQL Injection via String Concatenation through Recursive Eager Loading",@nocobase/database,0,2.0.39,,HIGH,CWE-89,
|
|
6925
6977
|
CVE-2026-41641,2026-04-22T20:07:11Z,"@nocobase/plugin-collection-sql: SQL Validation Bypass Through Missing `checkSQL` Call","@nocobase/plugin-collection-sql",0,2.0.39,,HIGH,CWE-284;CWE-89,
|
|
6926
|
-
CVE-2026-41650,2026-04-22T20:04:17Z,"fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters",fast-xml-parser,0,5.7
|
|
6978
|
+
CVE-2026-41650,2026-04-22T20:04:17Z,"fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters",fast-xml-parser,0,4.5.7,,MODERATE,CWE-91,
|
|
6979
|
+
CVE-2026-41650,2026-04-22T20:04:17Z,"fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters",fast-xml-parser,5.0.0,5.7.0,,MODERATE,CWE-91,
|
|
6927
6980
|
CVE-2026-41672,2026-04-22T20:16:07Z,"xmldom has XML node injection through unvalidated comment serialization",@xmldom/xmldom,0,0.8.13,,HIGH,CWE-91,
|
|
6928
6981
|
CVE-2026-41672,2026-04-22T20:16:07Z,"xmldom has XML node injection through unvalidated comment serialization",@xmldom/xmldom,0.9.0,0.9.10,,HIGH,CWE-91,
|
|
6929
6982
|
CVE-2026-41672,2026-04-22T20:16:07Z,"xmldom has XML node injection through unvalidated comment serialization",xmldom,0,,0.6.0,HIGH,CWE-91,
|
|
@@ -8322,6 +8375,7 @@ CVE-2026-61836,2026-07-20T21:48:15Z,"Directus: Authorization-dependent response
|
|
|
8322
8375
|
CVE-2026-6216,2026-04-13T21:30:45Z,"DbGate has cross site scripting via the SVG Icon String Handler component",dbgate-web,0,7.1.5,,LOW,CWE-79,
|
|
8323
8376
|
CVE-2026-62197,2026-10-21T19:37:42Z,"OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs",openclaw,0,2026.6.6,,MODERATE,CWE-284;CWE-918,
|
|
8324
8377
|
CVE-2026-62264,2026-10-29T16:34:35Z,"@sylphx/pdf-reader-mcp: HTTP transport accepts unauthenticated requests despite a configured MCP_API_KEY",@sylphx/pdf-reader-mcp,2.2.0,3.0.1,,HIGH,CWE-200;CWE-287;CWE-306,
|
|
8378
|
+
CVE-2026-62297,2026-11-13T23:19:38Z,"ag-psd can exhaust memory when parsing crafted PSD dimensions",ag-psd,0,31.0.0,,HIGH,CWE-789,
|
|
8325
8379
|
CVE-2026-62300,2026-11-05T18:07:30Z,"filecoin-pin: Unbounded DAG pinning can exhaust server resources",filecoin-pin,0,1.1.1,,MODERATE,CWE-400,
|
|
8326
8380
|
CVE-2026-62324,2026-07-31T19:08:20Z,"Jodit has incomplete javascript: scheme normalization in sanitizeHTMLElement href check that allows link XSS",jodit,0,4.12.31,,MODERATE,CWE-79;CWE-83,
|
|
8327
8381
|
CVE-2026-62374,2026-11-02T17:54:39Z,"SD JWT JS: Tampered disclosures silently dropped instead of rejected",@sd-jwt/core,0,0.20.0,,HIGH,CWE-176,
|
|
@@ -8336,6 +8390,10 @@ CVE-2026-63004,2026-08-21T19:14:45Z,"Unleash: Addon webhook URL is dialed server
|
|
|
8336
8390
|
CVE-2026-63004,2026-08-21T19:14:45Z,"Unleash: Addon webhook URL is dialed server-side with no internal-address filtering, enabling SSRF to internal services / cloud metadata and exfiltration of configured request headers",unleash-server,8.0.0,8.0.2,,MODERATE,CWE-918,
|
|
8337
8391
|
CVE-2026-63116,2026-09-22T19:56:34Z,"deepstream: PATCH_MULTI action bypasses Valve permission system allowing unauthorized record writes",@deepstream/server,10.1.0,10.1.1,,HIGH,CWE-862,
|
|
8338
8392
|
CVE-2026-63123,2026-08-19T21:56:36Z,"Tina: Cross-origin `POST /media/upload/*` requests can write arbitrary files into the Tina dev server media root",@tinacms/cli,0,2.5.2,,MODERATE,CWE-352,
|
|
8393
|
+
CVE-2026-63129,2026-11-19T00:46:38Z,"mssql-mcp-core: SQL injection in mssql-mcp write tools via unparameterized table names and WHERE clauses","@connorbritain/mssql-mcp-core",0,0.6.0,,HIGH,CWE-89,
|
|
8394
|
+
CVE-2026-63129,2026-11-19T00:46:38Z,"mssql-mcp-core: SQL injection in mssql-mcp write tools via unparameterized table names and WHERE clauses","@connorbritain/mssql-mcp-reader",0,0.5.0,,HIGH,CWE-89,
|
|
8395
|
+
CVE-2026-63129,2026-11-19T00:46:38Z,"mssql-mcp-core: SQL injection in mssql-mcp write tools via unparameterized table names and WHERE clauses","@connorbritain/mssql-mcp-server",0,0.6.0,,HIGH,CWE-89,
|
|
8396
|
+
CVE-2026-63129,2026-11-19T00:46:38Z,"mssql-mcp-core: SQL injection in mssql-mcp write tools via unparameterized table names and WHERE clauses","@connorbritain/mssql-mcp-writer",0,0.5.0,,HIGH,CWE-89,
|
|
8339
8397
|
CVE-2026-63188,2026-08-19T20:24:06Z,"logto-tunnel serves files outside `--experience-path` via path traversal",@logto/tunnel,0,0.3.9,,HIGH,CWE-22,
|
|
8340
8398
|
CVE-2026-6321,2026-05-08T17:15:09Z,"fast-uri vulnerable to path traversal via percent-encoded dot segments",fast-uri,0,2.4.1,,HIGH,CWE-22,
|
|
8341
8399
|
CVE-2026-6321,2026-05-08T17:15:09Z,"fast-uri vulnerable to path traversal via percent-encoded dot segments",fast-uri,3.0.0,3.1.1,,HIGH,CWE-22,
|
|
@@ -8357,6 +8415,7 @@ CVE-2026-63466,2026-08-21T19:14:52Z,"Unleash: Global Mustache.escape override di
|
|
|
8357
8415
|
CVE-2026-63472,2026-09-17T14:50:22Z,"Vendure affected by external-authentication account takeover: external login linked to a pre-existing account by email without verification",@vendure/core,0,3.7.0,,CRITICAL,CWE-287,
|
|
8358
8416
|
CVE-2026-63475,2026-11-09T19:58:32Z,"isomorphic-git: Circular symbolic references cause non-terminating resolution (DoS)",isomorphic-git,0,1.38.6,,MODERATE,CWE-674;CWE-835,
|
|
8359
8417
|
CVE-2026-63478,2026-11-09T20:13:52Z,"isomorphic-git: Path traversal via a "".."" tree-entry name writes files outside the working directory on clone/checkout",isomorphic-git,0,1.38.6,,MODERATE,CWE-22,
|
|
8418
|
+
CVE-2026-63496,2026-11-18T16:15:52Z,"augment-virShell allows Command Injection in `grep()` via Unsanitized `searchPattern`",@augment-vir/node,0,31.73.5,,HIGH,CWE-78,
|
|
8360
8419
|
CVE-2026-63501,2026-11-09T21:08:28Z,"ag-psd: Uncontrolled Memory Allocation in PSD Layer Decoding (totalMemoryLimit bypass)",ag-psd,0,31.0.1,,HIGH,CWE-770,
|
|
8361
8420
|
CVE-2026-63506,2026-09-17T14:59:00Z,"Tina: [Broken Access Control] letting any TinaCloud user authorize against any self-hosted site",@tinacms/auth,0,1.1.4,,HIGH,CWE-639,
|
|
8362
8421
|
CVE-2026-63506,2026-09-17T14:59:00Z,"Tina: [Broken Access Control] letting any TinaCloud user authorize against any self-hosted site",next-tinacms-azure,0,15.0.1,,HIGH,CWE-639,
|
|
@@ -8475,6 +8534,7 @@ CVE-2026-68904,2026-09-16T16:19:21Z,"node-opcua: TCP Socket Leak (FIN-WAIT-2) vi
|
|
|
8475
8534
|
CVE-2026-68904,2026-09-16T16:19:21Z,"node-opcua: TCP Socket Leak (FIN-WAIT-2) via keepalive reconnection cycle - Resource Exhaustion",node-opcua-transport,2.0.0,2.170.0,,HIGH,CWE-400,
|
|
8476
8535
|
CVE-2026-68921,2026-09-02T22:44:25Z,"DiceBear: SVG injection via the unescaped rotate option in @dicebear/core (and fontSize/fontWeight in @dicebear/initials)",@dicebear/core,0,9.4.3,,MODERATE,CWE-184;CWE-79,
|
|
8477
8536
|
CVE-2026-68921,2026-09-02T22:44:25Z,"DiceBear: SVG injection via the unescaped rotate option in @dicebear/core (and fontSize/fontWeight in @dicebear/initials)",@dicebear/initials,0,9.4.3,,MODERATE,CWE-184;CWE-79,
|
|
8537
|
+
CVE-2026-68934,2026-11-16T22:09:06Z,"code-review-mcp-server: Command injection via unsanitized folderPath/baseBranch parameters",code-review-mcp-server,0,1.5.3,,HIGH,CWE-78,
|
|
8478
8538
|
CVE-2026-68945,2026-08-03T15:59:13Z,"Angular: Cache-Key Ambiguity in HttpTransferCache Leading to Cross-Request Response Reuse and State Poisoning",@angular/common,0,,19.2.25,HIGH,CWE-345,
|
|
8479
8539
|
CVE-2026-68945,2026-08-03T15:59:13Z,"Angular: Cache-Key Ambiguity in HttpTransferCache Leading to Cross-Request Response Reuse and State Poisoning",@angular/common,20.0.0-next.0,20.3.27,,HIGH,CWE-345,
|
|
8480
8540
|
CVE-2026-68945,2026-08-03T15:59:13Z,"Angular: Cache-Key Ambiguity in HttpTransferCache Leading to Cross-Request Response Reuse and State Poisoning",@angular/common,21.0.0-next.0,21.2.19,,HIGH,CWE-345,
|
|
@@ -8624,6 +8684,7 @@ CVE-2026-71320,2026-08-05T21:29:55Z,"Nuxt: Server-Side Remote Code Execution via
|
|
|
8624
8684
|
CVE-2026-71320,2026-08-05T21:29:55Z,"Nuxt: Server-Side Remote Code Execution via Runtime Template Injection in Nuxt Server Island Props",nuxt,4.0.0,4.5.1,,HIGH,CWE-74;CWE-94,
|
|
8625
8685
|
CVE-2026-71321,2026-08-05T21:43:03Z,"Nuxt: Unauthenticated CPU exhaustion parsing and hashing the Nuxt island endpoint body before hash validation",nuxt,3.1.0,3.21.10,,HIGH,CWE-407;CWE-770,
|
|
8626
8686
|
CVE-2026-71321,2026-08-05T21:43:03Z,"Nuxt: Unauthenticated CPU exhaustion parsing and hashing the Nuxt island endpoint body before hash validation",nuxt,4.0.0,4.5.1,,HIGH,CWE-407;CWE-770,
|
|
8687
|
+
CVE-2026-71425,2026-11-18T20:43:43Z,"Outstatic: Authenticated GitHub REST proxy can send OAuth token to non-GitHub origins",outstatic,0,2.2.1,,MODERATE,CWE-918,
|
|
8627
8688
|
CVE-2026-71429,2026-09-03T20:27:53Z,"stream-json: pick/ignore/filter/replace filters are O(depth²) on nested input — small crafted JSON blocks the event loop for seconds→minutes (DoS)",stream-json,0,3.5.0,,MODERATE,CWE-407,
|
|
8628
8689
|
CVE-2026-71430,2026-08-06T21:19:36Z,"node-re2: String.prototype.replace(re2, template) aborts the Node process (uncatchable ToLocalChecked on empty MaybeLocal) when the result exceeds V8's max string length",re2,0,1.25.1,,MODERATE,CWE-617,
|
|
8629
8690
|
CVE-2026-71436,2026-08-06T19:49:48Z,"Mermaid XY Charts are vulnerable to an infinite loop DoS",mermaid,10.6.0,10.9.8,,MODERATE,CWE-1325;CWE-835,
|
|
@@ -8736,9 +8797,12 @@ CVE-2026-73654,2026-08-13T20:54:11Z,"Trigger.dev: Prototype pollution via run me
|
|
|
8736
8797
|
CVE-2026-73844,2026-09-03T14:49:10Z,"CKAN MCP Server: Information disclosure via verbose error reflection","@aborruso/ckan-mcp-server",0,0.4.112,,LOW,CWE-209;CWE-210,
|
|
8737
8798
|
CVE-2026-73845,2026-09-02T14:52:21Z,"CKAN MCP Server: MQA server allowlist bypass via unanchored regex (`isValidMqaServer`)","@aborruso/ckan-mcp-server",0,0.4.112,,MODERATE,CWE-20;CWE-625;CWE-918,
|
|
8738
8799
|
CVE-2026-73846,2026-09-03T14:49:22Z,"CKAN MCP Server: Cache-key canonicalization collision enables cache confusion / poisoning","@aborruso/ckan-mcp-server",0,0.4.112,,MODERATE,CWE-345;CWE-436,
|
|
8800
|
+
CVE-2026-73864,2026-11-18T21:17:37Z,"install-artifact-from-github loads downloaded native artifacts without integrity verification","install-artifact-from-github",0,1.7.0,,HIGH,CWE-494,
|
|
8739
8801
|
CVE-2026-7446,2026-04-30T00:31:22Z,"mcp-server-semgrep has a Command Injection issue",mcp-server-semgrep,0,1.0.1,,MODERATE,CWE-77,
|
|
8740
8802
|
CVE-2026-74866,2026-10-05T22:33:44Z,"@fastify/busboy vulnerable to CRLF injection via multipart Content-Disposition filename and name",@fastify/busboy,0,3.2.2,,MODERATE,CWE-93,
|
|
8741
8803
|
CVE-2026-75510,2026-09-22T20:34:35Z,"Novu: Stored XSS in In-App Inbox via notification redirect.url javascript: scheme",@novu/js,0,3.18.0,,MODERATE,CWE-79,
|
|
8804
|
+
CVE-2026-75518,2026-11-19T16:10:53Z,"DOMShell: domshell_eval classified as read-tier can execute side-effecting JavaScript without --allow-write",@apireno/domshell,0,2.0.8,,MODERATE,CWE-266;CWE-863,
|
|
8805
|
+
CVE-2026-75522,2026-11-19T20:35:57Z,"OpenID4VP: X.509 chain validation accepts a forged certificate that reuses a trusted anchor's Subject DN without verifying its signature",@openeudi/openid4vp,0,0.8.1,,HIGH,CWE-295;CWE-347,
|
|
8742
8806
|
CVE-2026-75604,2026-09-08T20:51:40Z,"Next.js: Unauthenticated Remote Code Execution on windows-hosted servers",next,13.4.0,15.5.24,,CRITICAL,CWE-22,
|
|
8743
8807
|
CVE-2026-75604,2026-09-08T20:51:40Z,"Next.js: Unauthenticated Remote Code Execution on windows-hosted servers",next,16.0.0,16.3.3,,CRITICAL,CWE-22,
|
|
8744
8808
|
CVE-2026-75856,2026-09-04T18:05:12Z,"CodeWhale: SSRF bypass - TOCTOU on DNS failure for DNS pinning",codewhale,0.8.41,0.8.64,,CRITICAL,CWE-918,
|
|
@@ -8774,6 +8838,7 @@ CVE-2026-76172,2026-09-02T15:41:53Z,"fast-uri vulnerable to host confusion via p
|
|
|
8774
8838
|
CVE-2026-76172,2026-09-02T15:41:53Z,"fast-uri vulnerable to host confusion via percent-encoded scheme normalization",fast-uri,3.0.0,3.1.6,,HIGH,CWE-177,
|
|
8775
8839
|
CVE-2026-76172,2026-09-02T15:41:53Z,"fast-uri vulnerable to host confusion via percent-encoded scheme normalization",fast-uri,4.0.0,4.1.3,,HIGH,CWE-177,
|
|
8776
8840
|
CVE-2026-7645,2026-05-02T18:30:27Z,"sublinear-time-solver has a Path Traversal Issue",sublinear-time-solver,0,,1.5.0,MODERATE,CWE-22,
|
|
8841
|
+
CVE-2026-76807,2026-11-19T20:38:35Z,"Todoist MCP Server: Browser DNS rebinding lets websites write and delete Todoist data through local MCP server",@doist/todoist-mcp,0,10.3.3,,CRITICAL,CWE-346;CWE-350,
|
|
8777
8842
|
CVE-2026-76844,2026-09-29T16:59:18Z,"webpack-dev-middleware vulnerable to Path Traversal via non-slash-terminated publicPath",webpack-dev-middleware,0,7.4.6,,HIGH,CWE-22,
|
|
8778
8843
|
CVE-2026-76844,2026-09-29T16:59:18Z,"webpack-dev-middleware vulnerable to Path Traversal via non-slash-terminated publicPath",webpack-dev-middleware,8.0.0,8.3.0,,HIGH,CWE-22,
|
|
8779
8844
|
CVE-2026-76845,2026-08-24T15:31:51Z,"adm-zip extraction follows destination symlinks, allowing arbitrary file overwrite",adm-zip,0.5.9,,0.6.0,MODERATE,CWE-59,
|
|
@@ -8789,6 +8854,7 @@ CVE-2026-76969,2026-09-08T03:31:13Z,"@sap/cds-mtx: Credential disclosure in mult
|
|
|
8789
8854
|
CVE-2026-77037,2026-09-08T21:29:51Z,"multer vulnerable to Denial of Service via file descriptor leak on aborted uploads",multer,2.2.0,2.3.0,,HIGH,CWE-400;CWE-459,
|
|
8790
8855
|
CVE-2026-77063,2026-09-08T21:29:42Z,"multer vulnerable to file size limit bypass via async fileFilter race condition",multer,0,2.3.0,,LOW,CWE-362,
|
|
8791
8856
|
CVE-2026-77078,2026-09-08T21:30:20Z,"multer vulnerable to Denial of Service via crafted multipart field names",multer,0,2.3.0,,HIGH,CWE-248,
|
|
8857
|
+
CVE-2026-77283,2026-11-19T20:41:18Z,"obsidian-sync-mcp: Missing Host/Origin validation lets a public website drive a victim's Obsidian vault via DNS rebinding (no-auth mode)",obsidian-sync-mcp,0,0.5.7,,HIGH,CWE-350,
|
|
8792
8858
|
CVE-2026-77301,2026-09-18T17:18:01Z,"adm-zip: Uncontrolled memory allocation via the declared uncompressed size (DoS)",adm-zip,0,0.6.1,,HIGH,CWE-789,
|
|
8793
8859
|
CVE-2026-77360,2026-09-17T14:52:37Z,"oRPC: Vary Header Injection in CORS Plugin leading to potential Cache/CORS Bypass",@orpc/server,0,1.14.8,,MODERATE,CWE-113,
|
|
8794
8860
|
CVE-2026-77361,2026-10-23T17:28:19Z,"obsidian-tc : Symlink read-ACL scope bypass via lexical path checks",obsidian-tc,0,1.3.1,,MODERATE,CWE-59;CWE-863,
|
|
@@ -8862,6 +8928,8 @@ CVE-2026-83616,2026-09-08T21:03:28Z,"xmldom: Processing Instruction Target Injec
|
|
|
8862
8928
|
CVE-2026-83617,2026-09-08T21:03:17Z,"xmldom: requireWellFormed element/attribute name validation is bypassable via an embedded line terminator",@xmldom/xmldom,0.9.11,0.9.12,,HIGH,CWE-625;CWE-91,
|
|
8863
8929
|
CVE-2026-83618,2026-09-08T21:02:25Z,"xmldom: requireWellFormed DocType publicId/systemId validation is bypassable via an embedded line terminator",@xmldom/xmldom,0.9.10,0.9.12,,HIGH,CWE-625;CWE-91,
|
|
8864
8930
|
CVE-2026-83619,2026-09-08T21:01:09Z,"xmldom: End-tag Whitespace-Trim Regex ReDoS — quadratic backtracking in the 0.8.x end-tag parser",@xmldom/xmldom,0.7.0,0.8.15,,HIGH,CWE-1333;CWE-400,
|
|
8931
|
+
CVE-2026-83816,2026-11-19T22:48:14Z,"CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE",codewhale,0,0.9.0,,HIGH,CWE-78;CWE-863,
|
|
8932
|
+
CVE-2026-83817,2026-11-19T22:47:33Z,"CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution",codewhale,0,0.9.0,,HIGH,CWE-1188;CWE-862,
|
|
8865
8933
|
CVE-2026-84292,2026-09-28T21:24:39Z,"fast-uri vulnerable to authority injection via an unvalidated port in serialize",fast-uri,0,2.4.6,,HIGH,CWE-116,
|
|
8866
8934
|
CVE-2026-84292,2026-09-28T21:24:39Z,"fast-uri vulnerable to authority injection via an unvalidated port in serialize",fast-uri,3.0.0,3.1.7,,HIGH,CWE-116,
|
|
8867
8935
|
CVE-2026-84292,2026-09-28T21:24:39Z,"fast-uri vulnerable to authority injection via an unvalidated port in serialize",fast-uri,4.0.0,4.1.4,,HIGH,CWE-116,
|
|
@@ -9062,7 +9130,7 @@ CVE-2026-93605,2026-10-07T18:05:00Z,"vm2 contains a sandbox escape vulnerability
|
|
|
9062
9130
|
CVE-2026-93687,2026-09-18T18:31:41Z,"Withdrawn Advisory: braces vulnerable to stack-exhaustion denial of service through deeply nested patterns",braces,0,,3.0.3,HIGH,CWE-674,
|
|
9063
9131
|
CVE-2026-93748,2026-09-18T18:31:44Z,"Withdrawn Advisory: http-cache-semantics max-stale handling can disclose cross-user cached responses",http-cache-semantics,0,,4.2.0,HIGH,CWE-524,
|
|
9064
9132
|
CVE-2026-93749,2026-09-18T18:31:44Z,"source-map-js allows event-loop denial of service through indexed source-map section offsets",source-map-js,1.0.0,1.2.2,,HIGH,CWE-1284,
|
|
9065
|
-
CVE-2026-93753,2026-09-18T18:31:44Z,"deepmerge mergeObject() allows prototype poisoning of returned objects",deepmerge,4.2.0,,4.3.1,LOW,CWE-1321,
|
|
9133
|
+
CVE-2026-93753,2026-09-18T18:31:44Z,"Withdrawn Advisory: deepmerge mergeObject() allows prototype poisoning of returned objects",deepmerge,4.2.0,,4.3.1,LOW,CWE-1321,
|
|
9066
9134
|
CVE-2026-93981,2026-09-30T23:46:16Z,"hono/jsx renders plain strings unescaped in boundary components, leading to XSS",hono,0,4.13.7,,MODERATE,CWE-79,
|
|
9067
9135
|
CVE-2026-94482,2026-10-22T15:50:34Z,"Next.js: Denial of Service in App Router using Server Actions",next,13.0.0,15.5.28,,HIGH,CWE-770,
|
|
9068
9136
|
CVE-2026-94482,2026-10-22T15:50:34Z,"Next.js: Denial of Service in App Router using Server Actions",next,16.0.0,16.4.1,,HIGH,CWE-770,
|
|
@@ -9353,6 +9421,7 @@ GHSA-4qhx-g9wp-g9m6,2019-06-14T16:09:01Z,"Failure to sanitize quotes which can l
|
|
|
9353
9421
|
GHSA-4qqc-mp5f-ccv4,2020-09-02T15:05:51Z,"Command Injection in bestzip",bestzip,0,2.1.7,,CRITICAL,CWE-77,
|
|
9354
9422
|
GHSA-4r97-78gf-q24v,2020-09-04T17:53:27Z,"Duplicate Advisory: Prototype Pollution in klona",klona,0,1.1.1,,HIGH,CWE-1321,
|
|
9355
9423
|
GHSA-4rgj-8mq3-hggj,2020-09-03T20:32:11Z,"Denial of Service in @hapi/subtext",@hapi/subtext,0,6.1.2,,HIGH,CWE-400,
|
|
9424
|
+
GHSA-4rj4-rcrq-gr92,2026-11-19T22:17:05Z,"Safari MCP: JavaScript injection through single-quoted tool arguments (backslash not escaped)",safari-mcp,0,2.22.15,,MODERATE,CWE-116;CWE-94,
|
|
9356
9425
|
GHSA-4v35-78jc-648r,2026-07-22T12:32:17Z,"Duplicate Advisory: computer-use Shell Sandbox Not Enforced on Linux and Windows",@n8n/computer-use,0,,,MODERATE,CWE-78,
|
|
9357
9426
|
GHSA-4vcf-q4xf-f48m,2025-11-25T21:42:53Z,"Better Auth Passkey Plugin allows passkey deletion through IDOR",@better-auth/passkey,0,1.4.0,,HIGH,CWE-284;CWE-639,
|
|
9358
9427
|
GHSA-4vjr-crvh-383h,2023-09-27T20:17:00Z,"@napi-rs/image affected by libwebp CVE",@napi-rs/image,0,1.7.0,,HIGH,,
|
|
@@ -9920,7 +9989,7 @@ GHSA-cff4-rrq6-h78w,2019-06-03T17:31:26Z,"Command Injection in command-exists",c
|
|
|
9920
9989
|
GHSA-cfqx-f43m-vfh7,2024-10-03T19:46:42Z,"@saltcorn/server arbitrary file and directory listing when accessing build mobile app results",@saltcorn/server,0,1.0.0-beta.14,,MODERATE,CWE-548,
|
|
9921
9990
|
GHSA-cfwc-xjfp-44jg,2020-09-04T17:19:48Z,"Command Injection in gnuplot",gnuplot,0.0.0,,,CRITICAL,CWE-77,
|
|
9922
9991
|
GHSA-cfxh-frx4-9gjg,2023-12-15T03:13:18Z,"Cross-site Scripting in @spscommerce/ds-react",@spscommerce/ds-react,4.12.2,7.17.4,,CRITICAL,CWE-79,
|
|
9923
|
-
GHSA-cg2g-xh64-v4q7,2026-10-22T16:25:31Z,"DOMPurify SAFE_FOR_TEMPLATES bypass: split template expressions survive in attached shadow root content on DOM output modes",dompurify,3.4.4,3.4.17,,
|
|
9992
|
+
GHSA-cg2g-xh64-v4q7,2026-10-22T16:25:31Z,"DOMPurify SAFE_FOR_TEMPLATES bypass: split template expressions survive in attached shadow root content on DOM output modes",dompurify,3.4.4,3.4.17,,LOW,CWE-79,
|
|
9924
9993
|
GHSA-cg48-9hh2-x6mx,2020-09-02T18:28:58Z,"HTML Injection in preact",preact,10.0.0-alpha.0,10.0.0-beta.1,,MODERATE,CWE-74,
|
|
9925
9994
|
GHSA-cgjv-rghq-qhgp,2019-09-11T23:00:57Z,"Path Traversal in algo-httpserv",algo-httpserv,0,1.1.2,,HIGH,CWE-22,
|
|
9926
9995
|
GHSA-cgvm-rvfv-c92r,2020-09-03T17:05:51Z,"Malicious Package in ecuvre",ecuvre,0.0.0,,,CRITICAL,CWE-506,
|
|
@@ -10409,7 +10478,7 @@ GHSA-mq6v-w35g-3c97,2024-02-03T00:37:56Z,"Local File Inclusion vulnerability in
|
|
|
10409
10478
|
GHSA-mq9h-cwc2-6j5r,2020-09-03T17:42:27Z,"Malicious Package in midway-dataproxy",midway-dataproxy,0.0.0,,,CRITICAL,CWE-506,
|
|
10410
10479
|
GHSA-mqhr-6j6h-74p5,2026-07-24T21:22:51Z," Budibase: Unauthenticated REST Datasource Credential Theft via Cross-Origin Auth Leak ",@budibase/server,0,,3.38.1,CRITICAL,CWE-200,
|
|
10411
10480
|
GHSA-mrr8-v49w-3333,2023-07-10T19:08:10Z,"sweetalert2 contains potentially undesirable behavior",sweetalert2,11.6.14,11.22.4,,LOW,CWE-440,
|
|
10412
|
-
GHSA-mrv2-3pqr-j5jr,2026-10-22T16:24:52Z,"DOMPurify IN_PLACE: hook that removes a parent or sibling leaves the detached subtree's event handlers armed (incomplete fix for GHSA-p98j-92pf-mc4p)",dompurify,0,3.4.17,,
|
|
10481
|
+
GHSA-mrv2-3pqr-j5jr,2026-10-22T16:24:52Z,"DOMPurify IN_PLACE: hook that removes a parent or sibling leaves the detached subtree's event handlers armed (incomplete fix for GHSA-p98j-92pf-mc4p)",dompurify,0,3.4.17,,LOW,CWE-693;CWE-79,
|
|
10413
10482
|
GHSA-mrvx-jmjw-vggc,2026-06-19T21:42:46Z," SearXNG MCP Server: DNS-resolved Private Hostname SSRF in `web_url_read`",mcp-searxng,0,1.7.1,,HIGH,CWE-918,
|
|
10414
10483
|
GHSA-mrx9-2rrp-rhpx,2026-09-17T00:31:27Z,"Duplicate Advisory: joi: Quadratic regular-expression backtracking in `Joi.string().isoDate()`",joi,18.0.0,,,HIGH,CWE-1333,
|
|
10415
10484
|
GHSA-mvch-rh6h-2m47,2020-09-11T21:10:29Z,"Malicious Package in equest",equest,0,,,CRITICAL,CWE-506,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrewrite/recipes-nodejs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.75.0",
|
|
4
4
|
"license": "Moderne Proprietary",
|
|
5
5
|
"description": "OpenRewrite recipes for Node.js library migrations.",
|
|
6
6
|
"homepage": "https://github.com/moderneinc/rewrite-node",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"ci:test": "jest"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@openrewrite/rewrite": "^8.
|
|
28
|
+
"@openrewrite/rewrite": "^8.115.0",
|
|
29
29
|
"mutative": "^1.1.0",
|
|
30
30
|
"semver": "^7.7.3"
|
|
31
31
|
},
|
package/src/index.ts
CHANGED
|
@@ -73,6 +73,10 @@ import {ReplaceHpagent} from "./migrate/hpagent/replace-hpagent";
|
|
|
73
73
|
import {FindHpagentManualMigrations} from "./migrate/hpagent/find-hpagent-manual-migrations";
|
|
74
74
|
import {SwapHpagentDependency} from "./migrate/hpagent/swap-hpagent-dependency";
|
|
75
75
|
import {MigrateAwsSdkV2ToV3} from "./migrate/aws-sdk-v3/migrate-aws-sdk-v2-to-v3";
|
|
76
|
+
import {MigrateAwsSdkPackagesToSmithy} from "./migrate/aws-sdk-smithy/migrate-aws-sdk-packages-to-smithy";
|
|
77
|
+
import {ReplaceAwsSdkSmithyImports} from "./migrate/aws-sdk-smithy/replace-aws-sdk-smithy-imports";
|
|
78
|
+
import {KeepNodeHttpHandlerIdleTimeout} from "./migrate/aws-sdk-smithy/keep-node-http-handler-idle-timeout";
|
|
79
|
+
import {DeclareSmithyTwins, SwapAwsSdkSmithyDependencies} from "./migrate/aws-sdk-smithy/swap-aws-sdk-smithy-dependencies";
|
|
76
80
|
import {ReplaceAwsSdkV2Clients} from "./migrate/aws-sdk-v3/replace-aws-sdk-v2-clients";
|
|
77
81
|
import {FindAwsSdkV2ManualMigrations} from "./migrate/aws-sdk-v3/find-aws-sdk-v2-manual-migrations";
|
|
78
82
|
import {AddAwsSdkV3Dependencies} from "./migrate/aws-sdk-v3/add-aws-sdk-v3-dependencies";
|
|
@@ -210,6 +214,11 @@ export async function activate(marketplace: RecipeMarketplace): Promise<void> {
|
|
|
210
214
|
await marketplace.install(FindAwsSdkV2ManualMigrations, AwsSdk);
|
|
211
215
|
await marketplace.install(AddAwsSdkV3Dependencies, AwsSdk);
|
|
212
216
|
await marketplace.install(RemoveUnusedAwsSdkV2Dependency, AwsSdk);
|
|
217
|
+
await marketplace.install(MigrateAwsSdkPackagesToSmithy, AwsSdk);
|
|
218
|
+
await marketplace.install(ReplaceAwsSdkSmithyImports, AwsSdk);
|
|
219
|
+
await marketplace.install(KeepNodeHttpHandlerIdleTimeout, AwsSdk);
|
|
220
|
+
await marketplace.install(SwapAwsSdkSmithyDependencies, AwsSdk);
|
|
221
|
+
await marketplace.install(DeclareSmithyTwins, AwsSdk);
|
|
213
222
|
await marketplace.install(MigrateSourceMapSupportToNative, SourceMapSupport);
|
|
214
223
|
await marketplace.install(ReplaceSourceMapSupportInstall, SourceMapSupport);
|
|
215
224
|
await marketplace.install(ReplaceSourceMapSupportApi, SourceMapSupport);
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 the original author or authors.
|
|
3
|
+
*
|
|
4
|
+
* Moderne Proprietary. Only for use by Moderne customers under the terms of a commercial contract.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import {J} from "@openrewrite/rewrite/java";
|
|
8
|
+
import {withStringValue} from "@openrewrite/rewrite/javascript";
|
|
9
|
+
import {SmithyRelease, SMITHY_TWINS} from "./smithy-twins";
|
|
10
|
+
|
|
11
|
+
/** `@aws-sdk/<name>` for each twin, in a stable order. */
|
|
12
|
+
export const MOVED_PACKAGES: readonly string[] = Object.keys(SMITHY_TWINS).sort().map(name => `@aws-sdk/${name}`);
|
|
13
|
+
|
|
14
|
+
/** `@smithy/<name>` for a moved `@aws-sdk/<name>`, else undefined. */
|
|
15
|
+
export function smithyTwin(pkg: string): string | undefined {
|
|
16
|
+
const name = pkg.startsWith('@aws-sdk/') ? pkg.substring('@aws-sdk/'.length) : undefined;
|
|
17
|
+
return name !== undefined && SMITHY_TWINS[name] ? `@smithy/${name}` : undefined;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The `@smithy/<name>` range for a lock group whose oldest declared Node.js is `node` and whose `@aws-sdk/*` clients
|
|
22
|
+
* build on `@smithy/types` major `types`: the newest release of that line, so the clients and the package share
|
|
23
|
+
* their types, else the newest release that Node.js runs, or the newest of all where no Node.js is declared. Below
|
|
24
|
+
* the lowest floor, the newest that the oldest Node.js of any line runs.
|
|
25
|
+
*/
|
|
26
|
+
export function smithyRangeFor(pkg: string, node: number | undefined, types?: number): string {
|
|
27
|
+
const lines = SMITHY_TWINS[pkg.substring(pkg.indexOf('/') + 1)];
|
|
28
|
+
const runs = (r: SmithyRelease) => node === undefined || r.node <= node;
|
|
29
|
+
const aligned = types === undefined ? undefined : lines.find(r => r.types === types && runs(r));
|
|
30
|
+
const lowest = Math.min(...lines.map(r => r.node));
|
|
31
|
+
return (aligned ?? lines.find(runs) ?? lines.find(r => r.node === lowest)!).range;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** The module a specifier names: the package, without a subpath. */
|
|
35
|
+
function packageOf(specifier: string): string {
|
|
36
|
+
const parts = specifier.split('/');
|
|
37
|
+
return specifier.startsWith('@') ? parts.slice(0, 2).join('/') : parts[0];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** The specifier with a moved `@aws-sdk/<name>` replaced by `@smithy/<name>`, any subpath kept, else undefined. */
|
|
41
|
+
export function movedSpecifier(e: J | undefined): J.Literal | undefined {
|
|
42
|
+
if (e?.kind !== J.Kind.Literal) return undefined;
|
|
43
|
+
const literal = e as J.Literal;
|
|
44
|
+
if (typeof literal.value !== 'string') return undefined;
|
|
45
|
+
const pkg = packageOf(literal.value);
|
|
46
|
+
const twin = smithyTwin(pkg);
|
|
47
|
+
return twin ? withStringValue(literal, twin + literal.value.substring(pkg.length)) : undefined;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** Exports a moved package had that its `@smithy/*` twin dropped in a later major: `StringWrapper` from 3.x on. */
|
|
51
|
+
export const DROPPED_EXPORTS: Readonly<Record<string, readonly string[]>> = {
|
|
52
|
+
'@aws-sdk/smithy-client': ['StringWrapper'],
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** The first `@aws-sdk/*` release whose packages depend on the `@smithy/*` twins rather than the moved packages. */
|
|
56
|
+
export const FIRST_ON_SMITHY = '3.363.0';
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The first `@aws-sdk/*` release whose enum-typed members no longer also accept `string`, so a widened string literal
|
|
60
|
+
* that compiled before no longer does. A client is raised to the releases before it, which build on `@smithy/types` 2.
|
|
61
|
+
*/
|
|
62
|
+
export const ENUMS_NARROWED = '3.429.0';
|
|
63
|
+
export const RAISED_SMITHY_TYPES = 2;
|
|
64
|
+
|
|
65
|
+
/** The first `aws-sdk-client-mock` release whose types accept a client from `FIRST_ON_SMITHY` on. */
|
|
66
|
+
export const CLIENT_MOCK_ON_SMITHY = '3.0.0';
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 the original author or authors.
|
|
3
|
+
*
|
|
4
|
+
* Moderne Proprietary. Only for use by Moderne customers under the terms of a commercial contract.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import {ExecutionContext, foundSearchResult, ScanningRecipe, Tree, TreeVisitor} from "@openrewrite/rewrite";
|
|
8
|
+
import {isIdentifier, J} from "@openrewrite/rewrite/java";
|
|
9
|
+
import {Json} from "@openrewrite/rewrite/json";
|
|
10
|
+
import {findNodeResolutionResult, JavaScriptVisitor, JS, template} from "@openrewrite/rewrite/javascript";
|
|
11
|
+
import * as semver from "semver";
|
|
12
|
+
import {dirOf, isPackageJson, packageData} from "../package-json-support";
|
|
13
|
+
import {bindingsOf, importModule, sourcePathOf} from "../module-bindings";
|
|
14
|
+
import {memberNameOf} from "../config-object-support";
|
|
15
|
+
import {FIRST_ON_SMITHY} from "./aws-sdk-smithy-support";
|
|
16
|
+
|
|
17
|
+
/** The first `@aws-sdk/*` release whose retry strategy makes `maxAttempts` attempts rather than one more. */
|
|
18
|
+
const RETRIES_COUNTED = '3.362.0';
|
|
19
|
+
|
|
20
|
+
interface Installed {
|
|
21
|
+
declared: string;
|
|
22
|
+
version?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface Scan {
|
|
26
|
+
/** By directory, the `@aws-sdk/*` packages its `package.json` declares and the release its lock resolves. */
|
|
27
|
+
installed: Map<string, Map<string, Installed>>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Before 3.362.0 an `@aws-sdk/*` client made `maxAttempts + 1` attempts of a request that failed with a retryable
|
|
32
|
+
* error. A client the migration raises past it makes `maxAttempts`, so its `maxAttempts` is raised by one to keep the
|
|
33
|
+
* attempts it made. Runs only before `DeclareSmithyTwins`, which leaves the client declared from 3.363.0
|
|
34
|
+
* on, so a later cycle leaves the raised `maxAttempts` as it is.
|
|
35
|
+
*/
|
|
36
|
+
export class KeepAwsSdkRetryAttempts extends ScanningRecipe<Scan> {
|
|
37
|
+
readonly name = "org.openrewrite.node.migrate.aws-sdk-smithy.keep-aws-sdk-retry-attempts";
|
|
38
|
+
readonly displayName = "Keep the attempts an `@aws-sdk/*` client made before 3.362.0";
|
|
39
|
+
readonly description = "An `@aws-sdk/*` client before 3.362.0 makes one attempt more than its `maxAttempts` of a " +
|
|
40
|
+
"request that fails with a retryable error; from 3.362.0 it makes `maxAttempts`. Where the lock resolves a " +
|
|
41
|
+
"client before 3.362.0 that is declared below 3.363.0, and so moves past it with the `@smithy/*` migration, " +
|
|
42
|
+
"the `maxAttempts` its constructor is given is raised by one (`attempts - 1` becomes `attempts`).";
|
|
43
|
+
readonly tags = ["aws-sdk", "aws", "smithy"];
|
|
44
|
+
|
|
45
|
+
initialValue(_ctx: ExecutionContext): Scan {
|
|
46
|
+
return {installed: new Map()};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
async scanner(scan: Scan): Promise<TreeVisitor<any, ExecutionContext>> {
|
|
50
|
+
return new class extends TreeVisitor<Tree, ExecutionContext> {
|
|
51
|
+
async visit<R extends Tree>(tree: Tree, _ctx: ExecutionContext): Promise<R | undefined> {
|
|
52
|
+
const sourcePath: string | undefined = (tree as any).sourcePath;
|
|
53
|
+
if (tree.kind !== Json.Kind.Document || !sourcePath || sourcePath.includes('node_modules/') ||
|
|
54
|
+
!isPackageJson(sourcePath.replace(/\\/g, '/'))) {
|
|
55
|
+
return tree as R;
|
|
56
|
+
}
|
|
57
|
+
const marker = findNodeResolutionResult(tree as Json.Document);
|
|
58
|
+
if (!marker) return tree as R;
|
|
59
|
+
// the range as the package.json now declares it, which the marker isn't updated with
|
|
60
|
+
const resolved = new Map<string, string | undefined>();
|
|
61
|
+
for (const dep of [...marker.dependencies, ...marker.devDependencies, ...marker.peerDependencies, ...marker.optionalDependencies]) {
|
|
62
|
+
resolved.set(dep.name, dep.resolved?.version);
|
|
63
|
+
}
|
|
64
|
+
const pkg = packageData(tree as Json.Document);
|
|
65
|
+
const installed = new Map<string, Installed>();
|
|
66
|
+
for (const section of ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies']) {
|
|
67
|
+
for (const [name, declared] of Object.entries<any>(pkg?.[section] ?? {})) {
|
|
68
|
+
if (name.startsWith('@aws-sdk/') && typeof declared === 'string') {
|
|
69
|
+
installed.set(name, {declared, version: resolved.get(name)});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
scan.installed.set(dirOf(sourcePath.replace(/\\/g, '/')), installed);
|
|
74
|
+
return tree as R;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
async editorWithData(scan: Scan): Promise<TreeVisitor<any, ExecutionContext>> {
|
|
80
|
+
return new class extends JavaScriptVisitor<ExecutionContext> {
|
|
81
|
+
// by local name, the client classes of an @aws-sdk/* package that moves past 3.362.0
|
|
82
|
+
private clients = new Set<string>();
|
|
83
|
+
|
|
84
|
+
protected override async visitJsCompilationUnit(cu: JS.CompilationUnit, p: ExecutionContext): Promise<J | undefined> {
|
|
85
|
+
this.clients = new Set();
|
|
86
|
+
const path = sourcePathOf(this.cursor).replace(/\\/g, '/');
|
|
87
|
+
for (const stmt of cu.statements) {
|
|
88
|
+
const module = stmt.element?.kind === JS.Kind.Import ? importModule(stmt.element as JS.Import) : undefined;
|
|
89
|
+
if (!module?.startsWith('@aws-sdk/client-') || !movesPastCountedRetries(scan, path, module)) continue;
|
|
90
|
+
for (const [local, imported] of bindingsOf(cu, new Set([module]))) {
|
|
91
|
+
if (imported?.endsWith('Client')) this.clients.add(local);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return this.clients.size === 0 ? cu : super.visitJsCompilationUnit(cu, p);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
protected override async visitNewClass(newClass: J.NewClass, p: ExecutionContext): Promise<J | undefined> {
|
|
98
|
+
const nc = await super.visitNewClass(newClass, p) as J.NewClass;
|
|
99
|
+
if (nc?.kind !== J.Kind.NewClass || !nc.class || !isIdentifier(nc.class) || !this.clients.has(nc.class.simpleName)) return nc;
|
|
100
|
+
const config = nc.arguments.elements[0]?.element;
|
|
101
|
+
if (config?.kind !== J.Kind.NewClass || (config as J.NewClass).class) return nc;
|
|
102
|
+
const statements = (config as J.NewClass).body?.statements ?? [];
|
|
103
|
+
const i = statements.findIndex(s => memberNameOf(s.element) === 'maxAttempts');
|
|
104
|
+
if (i < 0) return nc;
|
|
105
|
+
const property = statements[i].element as JS.PropertyAssignment;
|
|
106
|
+
const raised = property.initializer && await this.plusOne(property.initializer, p);
|
|
107
|
+
if (!raised) {
|
|
108
|
+
return foundSearchResult(nc, `${nc.class.simpleName} before ${RETRIES_COUNTED} made maxAttempts + 1 attempts; from ${RETRIES_COUNTED} it makes maxAttempts`);
|
|
109
|
+
}
|
|
110
|
+
const updated = [...statements];
|
|
111
|
+
updated[i] = {...statements[i], element: {...property, initializer: raised} as JS.PropertyAssignment};
|
|
112
|
+
const body = {...(config as J.NewClass).body!, statements: updated};
|
|
113
|
+
return {
|
|
114
|
+
...nc,
|
|
115
|
+
arguments: {...nc.arguments, elements: [{...nc.arguments.elements[0], element: {...config, body}}, ...nc.arguments.elements.slice(1)]}
|
|
116
|
+
} as J.NewClass;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
private async plusOne(e: J, p: ExecutionContext): Promise<J | undefined> {
|
|
120
|
+
if (e.kind === J.Kind.Literal && typeof (e as J.Literal).value === 'number') {
|
|
121
|
+
const n = (e as J.Literal).value as number + 1;
|
|
122
|
+
return {...e, value: n, valueSource: String(n)} as J.Literal;
|
|
123
|
+
}
|
|
124
|
+
if (e.kind === J.Kind.Binary) {
|
|
125
|
+
const b = e as J.Binary;
|
|
126
|
+
const right = b.right;
|
|
127
|
+
if (b.operator.element === J.Binary.Type.Subtraction && right.kind === J.Kind.Literal && (right as J.Literal).value === 1) {
|
|
128
|
+
return {...b.left, prefix: e.prefix} as J;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if (isIdentifier(e) || e.kind === J.Kind.FieldAccess || e.kind === J.Kind.MethodInvocation) {
|
|
132
|
+
return template`${e} + 1`.apply(e, this.cursor, {format: false}) as Promise<J | undefined>;
|
|
133
|
+
}
|
|
134
|
+
// a provider function, or an expression whose precedence a sum may change
|
|
135
|
+
return undefined;
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function movesPastCountedRetries(scan: Scan, path: string, module: string): boolean {
|
|
142
|
+
for (let dir = dirOf(path); ; dir = dirOf(dir)) {
|
|
143
|
+
const installed = scan.installed.get(dir)?.get(module);
|
|
144
|
+
if (installed) {
|
|
145
|
+
const version = installed.version ?? (semver.validRange(installed.declared) ? semver.minVersion(installed.declared)?.version : undefined);
|
|
146
|
+
const min = semver.validRange(installed.declared) ? semver.minVersion(installed.declared) : null;
|
|
147
|
+
return !!version && semver.lt(version, RETRIES_COUNTED) && !!min && semver.lt(min, FIRST_ON_SMITHY);
|
|
148
|
+
}
|
|
149
|
+
if (dir === '' || dir === '.' || dir === dirOf(dir)) return false;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026 the original author or authors.
|
|
3
|
+
*
|
|
4
|
+
* Moderne Proprietary. Only for use by Moderne customers under the terms of a commercial contract.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import {ExecutionContext, foundSearchResult, Recipe, TreeVisitor} from "@openrewrite/rewrite";
|
|
8
|
+
import {isIdentifier, J} from "@openrewrite/rewrite/java";
|
|
9
|
+
import {JavaScriptVisitor, JS} from "@openrewrite/rewrite/javascript";
|
|
10
|
+
import {bindingsOf, ModuleBindings} from "../module-bindings";
|
|
11
|
+
import {memberNameOf, renameKey, withoutMembers} from "../config-object-support";
|
|
12
|
+
|
|
13
|
+
const MODULES = new Set(['@aws-sdk/node-http-handler']);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Renames `requestTimeout` to `socketTimeout` in the options of a `NodeHttpHandler` from `@aws-sdk/node-http-handler`.
|
|
17
|
+
* Every `@aws-sdk/node-http-handler` release, and `@smithy/node-http-handler` before 4.4.0, took `requestTimeout` as
|
|
18
|
+
* the idle-socket timeout, rejecting with a `TimeoutError`, and `socketTimeout` as its alias. From 4.4.0
|
|
19
|
+
* `requestTimeout` bounds the whole request and only logs a warning when exceeded, so a call to a hung server never
|
|
20
|
+
* settles; `socketTimeout` keeps the old meaning in every release.
|
|
21
|
+
*/
|
|
22
|
+
export class KeepNodeHttpHandlerIdleTimeout extends Recipe {
|
|
23
|
+
readonly name = "org.openrewrite.node.migrate.aws-sdk-smithy.keep-node-http-handler-idle-timeout";
|
|
24
|
+
readonly displayName = "Keep the idle-socket timeout of a `NodeHttpHandler`";
|
|
25
|
+
readonly description = "Renames the `requestTimeout` option of a `NodeHttpHandler` from " +
|
|
26
|
+
"`@aws-sdk/node-http-handler` to `socketTimeout`. Before `@smithy/node-http-handler` 4.4.0, `requestTimeout` " +
|
|
27
|
+
"was the time a socket may stay idle before the request is rejected with a `TimeoutError`; from 4.4.0 it " +
|
|
28
|
+
"bounds the whole request and, unless `throwOnRequestTimeout` is set, only logs a warning, so a request to a " +
|
|
29
|
+
"server that stops answering hangs. `socketTimeout` is the idle-socket timeout in every release.";
|
|
30
|
+
readonly tags = ["aws-sdk", "aws", "smithy"];
|
|
31
|
+
|
|
32
|
+
async editor(): Promise<TreeVisitor<any, ExecutionContext>> {
|
|
33
|
+
return new class extends JavaScriptVisitor<ExecutionContext> {
|
|
34
|
+
private bindings: ModuleBindings = new Map();
|
|
35
|
+
|
|
36
|
+
protected override async visitJsCompilationUnit(cu: JS.CompilationUnit, p: ExecutionContext): Promise<J | undefined> {
|
|
37
|
+
this.bindings = bindingsOf(cu, MODULES);
|
|
38
|
+
return this.bindings.size === 0 ? cu : super.visitJsCompilationUnit(cu, p);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
protected override async visitNewClass(newClass: J.NewClass, p: ExecutionContext): Promise<J | undefined> {
|
|
42
|
+
const nc = await super.visitNewClass(newClass, p) as J.NewClass;
|
|
43
|
+
return nc?.kind === J.Kind.NewClass && this.isHandler(nc.class) ? this.withOptions(nc, nc.arguments.elements[0]?.element,
|
|
44
|
+
options => ({...nc, arguments: {...nc.arguments, elements: [{...nc.arguments.elements[0], element: options}, ...nc.arguments.elements.slice(1)]}}) as J.NewClass) : nc;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
protected override async visitMethodInvocation(method: J.MethodInvocation, p: ExecutionContext): Promise<J | undefined> {
|
|
48
|
+
const m = await super.visitMethodInvocation(method, p) as J.MethodInvocation;
|
|
49
|
+
return m?.kind === J.Kind.MethodInvocation && m.name.simpleName === 'create' && this.isHandler(m.select?.element)
|
|
50
|
+
? this.withOptions(m, m.arguments.elements[0]?.element,
|
|
51
|
+
options => ({...m, arguments: {...m.arguments, elements: [{...m.arguments.elements[0], element: options}, ...m.arguments.elements.slice(1)]}}) as J.MethodInvocation)
|
|
52
|
+
: m;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// NodeHttpHandler as imported, or as a member of the module's namespace
|
|
56
|
+
private isHandler(e: J | undefined): boolean {
|
|
57
|
+
if (!e) return false;
|
|
58
|
+
if (isIdentifier(e)) return this.bindings.get(e.simpleName) === 'NodeHttpHandler';
|
|
59
|
+
if (e?.kind !== J.Kind.FieldAccess) return false;
|
|
60
|
+
const fa = e as J.FieldAccess;
|
|
61
|
+
return fa.name.element.simpleName === 'NodeHttpHandler' && isIdentifier(fa.target) &&
|
|
62
|
+
this.bindings.has(fa.target.simpleName) && this.bindings.get(fa.target.simpleName) === undefined;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
private withOptions<T extends J>(call: T, options: J | undefined, replace: (options: J.NewClass) => T): T {
|
|
66
|
+
if (options?.kind !== J.Kind.NewClass || (options as J.NewClass).class) return call;
|
|
67
|
+
const literal = options as J.NewClass;
|
|
68
|
+
const members = literal.body?.statements.map(s => s.element) ?? [];
|
|
69
|
+
const timeout = members.find(m => memberNameOf(m) === 'requestTimeout') as JS.PropertyAssignment | undefined;
|
|
70
|
+
if (!timeout || !timeout.initializer) {
|
|
71
|
+
// `{requestTimeout}` shorthand, or a spread that may carry it
|
|
72
|
+
return timeout || members.some(m => m && isIdentifier(m) && m.simpleName === 'requestTimeout' || m.kind === JS.Kind.Spread)
|
|
73
|
+
? foundSearchResult(call, 'requestTimeout is the whole-request timeout from @smithy/node-http-handler 4.4.0, which only warns when exceeded; the idle-socket timeout it was is socketTimeout')
|
|
74
|
+
: call;
|
|
75
|
+
}
|
|
76
|
+
// requestTimeout took precedence over its socketTimeout alias
|
|
77
|
+
const kept = withoutMembers(literal, m => memberNameOf(m) === 'socketTimeout');
|
|
78
|
+
return replace({
|
|
79
|
+
...kept,
|
|
80
|
+
body: {
|
|
81
|
+
...kept.body!,
|
|
82
|
+
statements: kept.body!.statements.map(s => memberNameOf(s.element) === 'requestTimeout'
|
|
83
|
+
? {...s, element: renameKey(s.element as JS.PropertyAssignment, 'socketTimeout')} : s)
|
|
84
|
+
}
|
|
85
|
+
} as J.NewClass);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}
|