@openrewrite/recipes-nodejs 0.65.0 → 0.67.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 +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/migrate/aws-sdk-v3/add-aws-sdk-v3-dependencies.d.ts +16 -0
- package/dist/migrate/aws-sdk-v3/add-aws-sdk-v3-dependencies.d.ts.map +1 -0
- package/dist/migrate/aws-sdk-v3/add-aws-sdk-v3-dependencies.js +89 -0
- package/dist/migrate/aws-sdk-v3/add-aws-sdk-v3-dependencies.js.map +1 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-node-support.d.ts +33 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-node-support.d.ts.map +1 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-node-support.js +190 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-node-support.js.map +1 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-plan.d.ts +70 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-plan.d.ts.map +1 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-plan.js +315 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-plan.js.map +1 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-support.d.ts +181 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-support.d.ts.map +1 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-support.js +1504 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-support.js.map +1 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-tables.d.ts +3 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-tables.d.ts.map +1 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-tables.js +421 -0
- package/dist/migrate/aws-sdk-v3/aws-sdk-v3-tables.js.map +1 -0
- package/dist/migrate/aws-sdk-v3/find-aws-sdk-v2-manual-migrations.d.ts +20 -0
- package/dist/migrate/aws-sdk-v3/find-aws-sdk-v2-manual-migrations.d.ts.map +1 -0
- package/dist/migrate/aws-sdk-v3/find-aws-sdk-v2-manual-migrations.js +146 -0
- package/dist/migrate/aws-sdk-v3/find-aws-sdk-v2-manual-migrations.js.map +1 -0
- package/dist/migrate/aws-sdk-v3/migrate-aws-sdk-v2-to-v3.d.ts +13 -0
- package/dist/migrate/aws-sdk-v3/migrate-aws-sdk-v2-to-v3.d.ts.map +1 -0
- package/dist/migrate/aws-sdk-v3/migrate-aws-sdk-v2-to-v3.js +69 -0
- package/dist/migrate/aws-sdk-v3/migrate-aws-sdk-v2-to-v3.js.map +1 -0
- package/dist/migrate/aws-sdk-v3/remove-unused-aws-sdk-v2-dependency.d.ts +35 -0
- package/dist/migrate/aws-sdk-v3/remove-unused-aws-sdk-v2-dependency.d.ts.map +1 -0
- package/dist/migrate/aws-sdk-v3/remove-unused-aws-sdk-v2-dependency.js +132 -0
- package/dist/migrate/aws-sdk-v3/remove-unused-aws-sdk-v2-dependency.js.map +1 -0
- package/dist/migrate/aws-sdk-v3/replace-aws-sdk-v2-clients.d.ts +18 -0
- package/dist/migrate/aws-sdk-v3/replace-aws-sdk-v2-clients.d.ts.map +1 -0
- package/dist/migrate/aws-sdk-v3/replace-aws-sdk-v2-clients.js +562 -0
- package/dist/migrate/aws-sdk-v3/replace-aws-sdk-v2-clients.js.map +1 -0
- package/dist/migrate/builtin-binding-visitor.d.ts +1 -6
- package/dist/migrate/builtin-binding-visitor.d.ts.map +1 -1
- package/dist/migrate/builtin-binding-visitor.js +6 -69
- package/dist/migrate/builtin-binding-visitor.js.map +1 -1
- package/dist/migrate/express-request-id/replace-express-request-id.d.ts.map +1 -1
- package/dist/migrate/express-request-id/replace-express-request-id.js +1 -2
- package/dist/migrate/express-request-id/replace-express-request-id.js.map +1 -1
- package/dist/migrate/fs-extra/fs-extra-support.d.ts +0 -1
- package/dist/migrate/fs-extra/fs-extra-support.d.ts.map +1 -1
- package/dist/migrate/fs-extra/fs-extra-support.js +1 -2
- package/dist/migrate/fs-extra/fs-extra-support.js.map +1 -1
- package/dist/migrate/increase-node-engine-version.d.ts +1 -0
- package/dist/migrate/increase-node-engine-version.d.ts.map +1 -1
- package/dist/migrate/increase-node-engine-version.js +12 -7
- package/dist/migrate/increase-node-engine-version.js.map +1 -1
- package/dist/migrate/source-map-support/replace-source-map-support-api.js +1 -1
- package/dist/migrate/source-map-support/replace-source-map-support-api.js.map +1 -1
- package/dist/migrate/source-map-support/source-map-support-support.d.ts +0 -1
- package/dist/migrate/source-map-support/source-map-support-support.d.ts.map +1 -1
- package/dist/migrate/source-map-support/source-map-support-support.js +0 -1
- package/dist/migrate/source-map-support/source-map-support-support.js.map +1 -1
- package/dist/resources/advisories-npm.csv +97 -3
- package/package.json +2 -2
- package/src/index.ts +11 -0
- package/src/migrate/aws-sdk-v3/add-aws-sdk-v3-dependencies.ts +71 -0
- package/src/migrate/aws-sdk-v3/aws-sdk-v3-node-support.ts +172 -0
- package/src/migrate/aws-sdk-v3/aws-sdk-v3-plan.ts +399 -0
- package/src/migrate/aws-sdk-v3/aws-sdk-v3-support.ts +1480 -0
- package/src/migrate/aws-sdk-v3/aws-sdk-v3-tables.ts +432 -0
- package/src/migrate/aws-sdk-v3/find-aws-sdk-v2-manual-migrations.ts +126 -0
- package/src/migrate/aws-sdk-v3/migrate-aws-sdk-v2-to-v3.ts +56 -0
- package/src/migrate/aws-sdk-v3/remove-unused-aws-sdk-v2-dependency.ts +119 -0
- package/src/migrate/aws-sdk-v3/replace-aws-sdk-v2-clients.ts +523 -0
- package/src/migrate/builtin-binding-visitor.ts +9 -94
- package/src/migrate/express-request-id/replace-express-request-id.ts +1 -2
- package/src/migrate/fs-extra/fs-extra-support.ts +1 -2
- package/src/migrate/increase-node-engine-version.ts +11 -7
- package/src/migrate/source-map-support/replace-source-map-support-api.ts +1 -1
- package/src/migrate/source-map-support/source-map-support-support.ts +0 -1
|
@@ -4603,6 +4603,7 @@ CVE-2026-102422,2026-10-06T13:40:36Z,"shell-quote: `quote()` command injection v
|
|
|
4603
4603
|
CVE-2026-102527,2026-10-15T20:15:27Z,"Nuxt OG Image cache poisoning through derivable cache keys on unsigned dynamic image routes",nuxt-og-image,6.2.5,6.7.0,,MODERATE,CWE-349,
|
|
4604
4604
|
CVE-2026-102599,2026-09-29T23:44:33Z,"Socket.IO: Engine.IO Protocol Revision Mismatch DoS",engine.io,6.6.0,6.6.10,,HIGH,CWE-248,
|
|
4605
4605
|
CVE-2026-102600,2026-10-05T23:44:21Z,"Socket.IO: Prototype Pollution via Unsafe Client Session Lookup","@socket.io/cluster-engine",0,0.1.1,,HIGH,CWE-20,
|
|
4606
|
+
CVE-2026-102650,2026-11-10T15:57:12Z,"Nuxt Content: Unauthenticated SQLite Function DoS via Content Query API",@nuxt/content,3.0.0,3.15.2,,HIGH,CWE-400;CWE-770,
|
|
4606
4607
|
CVE-2026-102672,2026-09-29T18:06:59Z,"Electron: Local race condition in Squirrel.Mac update installation on macOS",electron,0,39.8.10,,MODERATE,CWE-367,
|
|
4607
4608
|
CVE-2026-102672,2026-09-29T18:06:59Z,"Electron: Local race condition in Squirrel.Mac update installation on macOS",electron,40.0.0-alpha.1,41.10.5,,MODERATE,CWE-367,
|
|
4608
4609
|
CVE-2026-102672,2026-09-29T18:06:59Z,"Electron: Local race condition in Squirrel.Mac update installation on macOS",electron,42.0.0-alpha.1,42.0.0-beta.2,,MODERATE,CWE-367,
|
|
@@ -4890,6 +4891,9 @@ CVE-2026-107722,2026-10-08T22:02:07Z,"fast-jwt: Incomplete patch of CVE-2026-349
|
|
|
4890
4891
|
CVE-2026-107723,2026-10-08T22:01:58Z,"fast-jwt : Silent claim-validator bypass when JWT payload is a JSON array",fast-jwt,0,6.3.0,,HIGH,CWE-1287,
|
|
4891
4892
|
CVE-2026-107724,2026-10-08T22:01:53Z,"fast-jwt treats raw public JWK JSON as an HMAC secret, enabling HS256 token forgery",fast-jwt,6.2.4,6.3.0,,HIGH,CWE-347,
|
|
4892
4893
|
CVE-2026-107832,2026-10-22T16:40:35Z,"fastify is vulnerable to header validation bypass via case-sensitive propertyNames",fastify,5.12.2,5.12.6,,LOW,CWE-178,
|
|
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
|
+
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
|
+
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,
|
|
4893
4897
|
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,
|
|
4894
4898
|
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,
|
|
4895
4899
|
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,
|
|
@@ -4927,6 +4931,10 @@ CVE-2026-110644,2026-10-14T15:32:28Z,"nodejs-whisper allows OS command injection
|
|
|
4927
4931
|
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,
|
|
4928
4932
|
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,
|
|
4929
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,4.0.0,4.2.3,,LOW,CWE-116;CWE-41,
|
|
4934
|
+
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
|
+
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
|
+
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,
|
|
4937
|
+
CVE-2026-110802,2026-11-10T15:57:27Z,"Altair: DOM-based XSS via attacker-controlled script URLs in the iframe sandbox",altair-static,7.2.4,8.5.8,,MODERATE,CWE-79;CWE-829,
|
|
4930
4938
|
CVE-2026-110816,2026-10-27T16:10:55Z,"qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError on array elements carrying a non-callable own toString (DoS)",qs,6.7.0,6.16.1,,MODERATE,CWE-248;CWE-704,
|
|
4931
4939
|
CVE-2026-110871,2026-10-22T16:07:04Z,"Nodemailer: Quadratic (O(n^2)) DKIM header unfolding lets a large folded header cause remote denial of service during signing",nodemailer,3.0.0,10.0.10,,MODERATE,CWE-400;CWE-407,
|
|
4932
4940
|
CVE-2026-111181,2026-10-23T20:53:11Z,"body-parser vulnerable to Denial of Service via trailing bytes after a compressed request body",body-parser,0,1.20.9,,HIGH,CWE-248,
|
|
@@ -5142,6 +5150,8 @@ CVE-2026-115570,2026-10-23T20:53:41Z,"Electron: Mitigation for compromised eMudh
|
|
|
5142
5150
|
CVE-2026-11572,2026-06-09T06:31:59Z,"degit has a Command Injection issue",degit,0,2.8.6,,HIGH,CWE-77;CWE-78,
|
|
5143
5151
|
CVE-2026-11572,2026-06-09T06:31:59Z,"degit has a Command Injection issue",degit,3.0.0,3.3.1,,HIGH,CWE-77;CWE-78,
|
|
5144
5152
|
CVE-2026-115730,2026-10-28T21:07:57Z,"i18next-http-backend: Namespace value starting with / forms a protocol-relative URL when loadPath/addPath places {{ns}} right after a / (bypass of the // check added for GHSA-xvq9-wjp8-hwqf)",i18next-http-backend,0,4.0.3,,LOW,CWE-74,
|
|
5153
|
+
CVE-2026-115779,2026-11-10T15:57:32Z,"Effect: Cookie attribute injection via domain, path, and name fields in @effect/platform makeCookie()",@effect/platform,0.1.0,0.97.1,,MODERATE,CWE-20;CWE-74,
|
|
5154
|
+
CVE-2026-115779,2026-11-10T15:57:32Z,"Effect: Cookie attribute injection via domain, path, and name fields in @effect/platform makeCookie()",effect,4.0.0-beta.0,4.0.0-beta.103,,MODERATE,CWE-20;CWE-74,
|
|
5145
5155
|
CVE-2026-115887,2026-10-28T21:13:10Z,"graphql-scalars PhoneNumber scalar is vulnerable to regular expression denial of service",graphql-scalars,1.24.1,2.0.1,,HIGH,CWE-1333,
|
|
5146
5156
|
CVE-2026-115895,2026-10-23T22:06:13Z,"Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code execution",happy-dom,17.0.0,21.0.4,,HIGH,CWE-94,
|
|
5147
5157
|
CVE-2026-115897,2026-10-23T22:09:52Z,"Serialize JavaScript: Cross-site scripting (XSS) via unescaped </script at the end of a serialized function body",serialize-javascript,0,7.1.3,,LOW,CWE-79,
|
|
@@ -5231,13 +5241,18 @@ CVE-2026-118663,2026-10-28T21:05:00Z,"@hono/node-server: `serveStatic` decodes t
|
|
|
5231
5241
|
CVE-2026-118664,2026-10-29T16:41:28Z,"decode-uri-component vulnerable to denial of service via quadratic replacement of percent-encoded runs",decode-uri-component,0,0.5.1,,HIGH,CWE-400;CWE-407,
|
|
5232
5242
|
CVE-2026-118665,2026-10-28T21:05:17Z,"GraphQL Tools: Per-request connection parameters persist into later users' WebSocket authentications","@graphql-tools/executor-legacy-ws",0,1.1.36,,HIGH,CWE-613,
|
|
5233
5243
|
CVE-2026-118666,2026-10-28T21:05:07Z,"GraphQL Tools: Shared legacy executor routes one subscription's results to a different caller","@graphql-tools/executor-legacy-ws",0,1.1.36,,MODERATE,CWE-200,
|
|
5244
|
+
CVE-2026-118670,2026-11-10T15:57:51Z,"OHIF Viewers: DOM-Based Cross Site Scripting (XSS) through MIME type of document","@ohif/extension-dicom-pdf",3.13.0-beta.0,3.13.10,,HIGH,CWE-79,
|
|
5245
|
+
CVE-2026-118670,2026-11-10T15:57:51Z,"OHIF Viewers: DOM-Based Cross Site Scripting (XSS) through MIME type of document","@ohif/extension-dicom-pdf",3.14.0-beta.0,3.14.0-beta.36,,HIGH,CWE-79,
|
|
5246
|
+
CVE-2026-118670,2026-11-10T15:57:51Z,"OHIF Viewers: DOM-Based Cross Site Scripting (XSS) through MIME type of document","@ohif/extension-dicom-pdf",3.5.0-beta.0,3.12.18,,HIGH,CWE-79,
|
|
5234
5247
|
CVE-2026-118763,2026-10-30T23:00:17Z,"@sigstore/oci sends the registry Authorization header to a cross-host blob-upload Location",@sigstore/oci,0,0.7.2,,HIGH,CWE-522,
|
|
5235
5248
|
CVE-2026-118764,2026-10-30T23:09:55Z,"minimatch has potential denial of service via globparts amplification",minimatch,7.0.0,11.0.1,,MODERATE,CWE-405,
|
|
5236
5249
|
CVE-2026-118772,2026-10-30T23:10:23Z,"joi: quadratic-time split in `string().email({ multiple: true })` allows denial of service",@hapi/joi,16.0.0,,17.1.1,HIGH,CWE-1333,
|
|
5237
5250
|
CVE-2026-118772,2026-10-30T23:10:23Z,"joi: quadratic-time split in `string().email({ multiple: true })` allows denial of service",joi,17.1.1,17.13.9,,HIGH,CWE-1333,
|
|
5238
5251
|
CVE-2026-118772,2026-10-30T23:10:23Z,"joi: quadratic-time split in `string().email({ multiple: true })` allows denial of service",joi,18.0.0,18.3.1,,HIGH,CWE-1333,
|
|
5239
5252
|
CVE-2026-118773,2026-10-30T23:09:11Z,"Glob: AbortSignal cancellation bypass allows post-timeout filesystem traversal",glob,9.0.0,14.0.2,,MODERATE,CWE-400,
|
|
5253
|
+
CVE-2026-118774,2026-11-10T15:57:48Z,"Forge: Certificate signature verified with the issuer's RSA signature scheme",node-forge,0,1.4.1,,LOW,CWE-347,
|
|
5240
5254
|
CVE-2026-118775,2026-10-30T23:02:40Z,"Forge: ASN.1 OID first arc truncation in asn1.oidToDer",node-forge,0,1.4.1,,LOW,CWE-190,
|
|
5255
|
+
CVE-2026-118776,2026-11-10T15:57:46Z,"Forge: Incomplete PKCS#7 padding validation in AES/DES CBC and ECB decryption",node-forge,0,1.4.1,,LOW,CWE-20;CWE-354,
|
|
5241
5256
|
CVE-2026-118777,2026-10-30T23:02:35Z,"Forge: Prototype Pollution in forge.http cookie handling via a malicious Set-Cookie",node-forge,0,1.4.1,,MODERATE,CWE-1321,
|
|
5242
5257
|
CVE-2026-118778,2026-10-30T23:02:30Z,"Forge: TLS client crash when the server sends no certificate",node-forge,0,1.4.1,,MODERATE,CWE-476,
|
|
5243
5258
|
CVE-2026-118779,2026-10-30T23:02:25Z,"Forge: Regular expression denial of service in PEM decoding (pem.decode)",node-forge,0,1.4.1,,HIGH,CWE-1333;CWE-400,
|
|
@@ -5247,7 +5262,10 @@ CVE-2026-118782,2026-10-30T23:02:05Z,"Forge: PKCS#12 MAC forgery and constant-ke
|
|
|
5247
5262
|
CVE-2026-119186,2026-10-30T23:02:09Z,"Forge: AES-GCM authentication bypass via unvalidated tagLength option",node-forge,0,1.4.1,,MODERATE,CWE-1284;CWE-354,
|
|
5248
5263
|
CVE-2026-119187,2026-10-30T23:01:54Z,"Forge: Denial of service in TLS record processing via call stack exhaustion",node-forge,0,1.4.1,,HIGH,CWE-674,
|
|
5249
5264
|
CVE-2026-119188,2026-10-30T23:02:00Z,"Forge: Denial of service in TLS record processing via a record interleaved with a fragmented handshake message",node-forge,0,1.4.1,,HIGH,CWE-248;CWE-476,
|
|
5265
|
+
CVE-2026-119189,2026-11-10T15:57:43Z,"Forge: X.509 pathLenConstraint not enforced by verifyCertificateChain() for CA certificates without keyUsage",node-forge,0,1.4.1,,MODERATE,CWE-295,
|
|
5250
5266
|
CVE-2026-119190,2026-10-30T23:01:46Z,"Forge: X.509 basicConstraints bypass in verifyCertificateChain() via deprecated extension OIDs 2.5.29.10 and 2.5.29.13",node-forge,0,1.4.1,,HIGH,CWE-295;CWE-436,
|
|
5267
|
+
CVE-2026-119191,2026-11-10T15:57:41Z,"Forge: ASN.1 resource exhaustion via BIT STRING decoding in asn1.fromDer",node-forge,0,1.4.1,,HIGH,CWE-400;CWE-674,
|
|
5268
|
+
CVE-2026-119192,2026-11-10T15:57:34Z,"Forge: RSA PKCS#1 v1.5 signature forgery via non-canonical DigestInfo encoding",node-forge,0,1.4.1,,HIGH,CWE-347,
|
|
5251
5269
|
CVE-2026-119198,2026-10-30T23:00:48Z,"Nuxt dev server arbitrary file read through client error reports",@nuxt/vite-builder,4.6.0,4.6.3,,MODERATE,CWE-73,
|
|
5252
5270
|
CVE-2026-119199,2026-10-30T23:00:43Z,"Nuxt dev server exposes private runtime config through the Nitro dev bundle",@nuxt/vite-builder,3.0.0,4.6.3,,MODERATE,CWE-200;CWE-538;CWE-552,
|
|
5253
5271
|
CVE-2026-119200,2026-10-30T23:00:53Z,"Nuxt: Dot segments in the request path bypass `server/middleware` path checks and server route rules on page routes",@nuxt/nitro-server,4.6.0,4.6.3,,MODERATE,CWE-41;CWE-436;CWE-863,
|
|
@@ -5260,6 +5278,18 @@ CVE-2026-119282,2026-10-30T14:42:14Z,"@nx/maven and @nx/gradle have OS command i
|
|
|
5260
5278
|
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,
|
|
5261
5279
|
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,
|
|
5262
5280
|
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
|
+
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
|
+
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,
|
|
5283
|
+
CVE-2026-120778,2026-11-11T00:30:06Z,"Microsoft Security Advisory CVE-2026-120778 - Aspire Elevation of Privilege Vulnerability","@microsoft/aspire-cli-linux-x64",13.4.2,13.6.5,,HIGH,CWE-379,
|
|
5284
|
+
CVE-2026-120778,2026-11-11T00:30:06Z,"Microsoft Security Advisory CVE-2026-120778 - Aspire Elevation of Privilege Vulnerability","@microsoft/aspire-cli-osx-arm64",13.4.2,13.6.5,,HIGH,CWE-379,
|
|
5285
|
+
CVE-2026-120778,2026-11-11T00:30:06Z,"Microsoft Security Advisory CVE-2026-120778 - Aspire Elevation of Privilege Vulnerability","@microsoft/aspire-cli-osx-x64",13.4.2,13.6.5,,HIGH,CWE-379,
|
|
5286
|
+
CVE-2026-120778,2026-11-11T00:30:06Z,"Microsoft Security Advisory CVE-2026-120778 - Aspire Elevation of Privilege Vulnerability",@microsoft/aspire-cli,13.4.2,13.6.5,,HIGH,CWE-379,
|
|
5287
|
+
CVE-2026-120792,2026-11-11T00:31:23Z,"Microsoft Security Advisory CVE-2026-120792 - Aspire Information Disclosure Vulnerability","@microsoft/aspire-cli-linux-arm64",13.4.2,13.6.5,,HIGH,CWE-532,
|
|
5288
|
+
CVE-2026-120792,2026-11-11T00:31:23Z,"Microsoft Security Advisory CVE-2026-120792 - Aspire Information Disclosure Vulnerability","@microsoft/aspire-cli-linux-musl-x64",13.4.2,13.6.5,,HIGH,CWE-532,
|
|
5289
|
+
CVE-2026-120792,2026-11-11T00:31:23Z,"Microsoft Security Advisory CVE-2026-120792 - Aspire Information Disclosure Vulnerability","@microsoft/aspire-cli-linux-x64",13.4.2,13.6.5,,HIGH,CWE-532,
|
|
5290
|
+
CVE-2026-120792,2026-11-11T00:31:23Z,"Microsoft Security Advisory CVE-2026-120792 - Aspire Information Disclosure Vulnerability","@microsoft/aspire-cli-osx-arm64",13.4.2,13.6.5,,HIGH,CWE-532,
|
|
5291
|
+
CVE-2026-120792,2026-11-11T00:31:23Z,"Microsoft Security Advisory CVE-2026-120792 - Aspire Information Disclosure Vulnerability","@microsoft/aspire-cli-osx-x64",13.4.2,13.6.5,,HIGH,CWE-532,
|
|
5292
|
+
CVE-2026-120792,2026-11-11T00:31:23Z,"Microsoft Security Advisory CVE-2026-120792 - Aspire Information Disclosure Vulnerability",@microsoft/aspire-cli,13.4.2,13.6.5,,HIGH,CWE-532,
|
|
5263
5293
|
CVE-2026-12143,2026-06-15T17:26:26Z,"form-data: CRLF injection in form-data via unescaped multipart field names and filenames",form-data,0,2.5.6,,HIGH,CWE-93,
|
|
5264
5294
|
CVE-2026-12143,2026-06-15T17:26:26Z,"form-data: CRLF injection in form-data via unescaped multipart field names and filenames",form-data,3.0.0,3.0.5,,HIGH,CWE-93,
|
|
5265
5295
|
CVE-2026-12143,2026-06-15T17:26:26Z,"form-data: CRLF injection in form-data via unescaped multipart field names and filenames",form-data,4.0.0,4.0.6,,HIGH,CWE-93,
|
|
@@ -5274,11 +5304,69 @@ CVE-2026-123809,2026-07-31T16:01:07Z,"@dynatrace-oss/dynatrace-mcp-server has a
|
|
|
5274
5304
|
CVE-2026-123810,2026-07-31T15:56:12Z,"@dynatrace-oss/dynatrace-mcp-server has a DQL injection via parameters not documented as DQL","@dynatrace-oss/dynatrace-mcp-server",0,2.1.1,,MODERATE,CWE-89;CWE-943,
|
|
5275
5305
|
CVE-2026-123811,2026-07-31T16:05:57Z,"`@dynatrace-oss/dynatrace-mcp-server` has Unauthenticated HTTP MCP Tool Invocation","@dynatrace-oss/dynatrace-mcp-server",0,2.0.0,,HIGH,CWE-306,
|
|
5276
5306
|
CVE-2026-1245,2026-01-20T21:31:34Z,"binary-parser library has a code injection vulnerability",binary-parser,0,2.3.0,,MODERATE,CWE-94,
|
|
5307
|
+
CVE-2026-125107,2026-06-26T20:55:18Z,"Muhammara has a NULL pointer dereference in LZWDecode filter when DecodeParms omits EarlyChange key",muhammara,0,6.0.5,,HIGH,CWE-476,
|
|
5308
|
+
CVE-2026-125114,2026-04-14T23:22:48Z,"Novu has SSRF via conditions filter webhook bypasses validateUrlSsrf() protection",@novu/api,0,3.15.0,,HIGH,CWE-918,
|
|
5309
|
+
CVE-2026-125115,2026-07-28T14:59:22Z,"@novu/application-generic: `validateUrlSsrf` permits CGNAT (100.64.0.0/10) destinations — affects Workflow HTTP request step + Webhook filter condition","@novu/application-generic",0,3.17.0,,MODERATE,CWE-918,
|
|
5310
|
+
CVE-2026-125116,2026-11-10T20:57:18Z,"Mongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor') bypass schema casting and can poison collections",mongoose,0,6.13.12,,MODERATE,CWE-843,
|
|
5311
|
+
CVE-2026-125116,2026-11-10T20:57:18Z,"Mongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor') bypass schema casting and can poison collections",mongoose,7.0.0,7.8.13,,MODERATE,CWE-843,
|
|
5312
|
+
CVE-2026-125116,2026-11-10T20:57:18Z,"Mongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor') bypass schema casting and can poison collections",mongoose,8.0.0,8.24.7,,MODERATE,CWE-843,
|
|
5313
|
+
CVE-2026-125116,2026-11-10T20:57:18Z,"Mongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor') bypass schema casting and can poison collections",mongoose,9.0.0,9.11.4,,MODERATE,CWE-843,
|
|
5314
|
+
CVE-2026-125117,2026-11-10T20:56:16Z,"Mongoose walks into inherited properties when hydrating, setting, and merging, allowing overwrites of built-in functions (denial of service) and shared schema state",mongoose,0,6.13.12,,HIGH,CWE-1321,
|
|
5315
|
+
CVE-2026-125117,2026-11-10T20:56:16Z,"Mongoose walks into inherited properties when hydrating, setting, and merging, allowing overwrites of built-in functions (denial of service) and shared schema state",mongoose,7.0.0,7.8.13,,HIGH,CWE-1321,
|
|
5316
|
+
CVE-2026-125117,2026-11-10T20:56:16Z,"Mongoose walks into inherited properties when hydrating, setting, and merging, allowing overwrites of built-in functions (denial of service) and shared schema state",mongoose,8.0.0,8.24.7,,HIGH,CWE-1321,
|
|
5317
|
+
CVE-2026-125117,2026-11-10T20:56:16Z,"Mongoose walks into inherited properties when hydrating, setting, and merging, allowing overwrites of built-in functions (denial of service) and shared schema state",mongoose,9.0.0,9.11.4,,HIGH,CWE-1321,
|
|
5318
|
+
CVE-2026-125118,2026-11-10T20:46:33Z,"Mongoose: Prototype pollution via Schema.prototype.virtual()",mongoose,0,6.13.12,,MODERATE,CWE-1321,
|
|
5319
|
+
CVE-2026-125118,2026-11-10T20:46:33Z,"Mongoose: Prototype pollution via Schema.prototype.virtual()",mongoose,7.0.0,7.8.13,,MODERATE,CWE-1321,
|
|
5320
|
+
CVE-2026-125118,2026-11-10T20:46:33Z,"Mongoose: Prototype pollution via Schema.prototype.virtual()",mongoose,8.0.0,8.24.7,,MODERATE,CWE-1321,
|
|
5321
|
+
CVE-2026-125118,2026-11-10T20:46:33Z,"Mongoose: Prototype pollution via Schema.prototype.virtual()",mongoose,9.0.0,9.11.4,,MODERATE,CWE-1321,
|
|
5322
|
+
CVE-2026-125119,2026-11-10T19:56:12Z,"Mongoose: Connection-level sanitizeFilter not applied",mongoose,6.0.0,6.13.12,,HIGH,CWE-943,
|
|
5323
|
+
CVE-2026-125119,2026-11-10T19:56:12Z,"Mongoose: Connection-level sanitizeFilter not applied",mongoose,7.0.0,7.8.13,,HIGH,CWE-943,
|
|
5324
|
+
CVE-2026-125119,2026-11-10T19:56:12Z,"Mongoose: Connection-level sanitizeFilter not applied",mongoose,8.0.0,8.24.7,,HIGH,CWE-943,
|
|
5325
|
+
CVE-2026-125119,2026-11-10T19:56:12Z,"Mongoose: Connection-level sanitizeFilter not applied",mongoose,9.0.0,9.11.4,,HIGH,CWE-943,
|
|
5326
|
+
CVE-2026-125120,2026-11-10T19:37:32Z,"Mongoose: sanitizeFilter not applied on countDocuments",mongoose,0,6.13.11,,CRITICAL,CWE-943,
|
|
5327
|
+
CVE-2026-125120,2026-11-10T19:37:32Z,"Mongoose: sanitizeFilter not applied on countDocuments",mongoose,7.0.0,7.8.12,,CRITICAL,CWE-943,
|
|
5328
|
+
CVE-2026-125120,2026-11-10T19:37:32Z,"Mongoose: sanitizeFilter not applied on countDocuments",mongoose,8.0.0,8.24.3,,CRITICAL,CWE-943,
|
|
5329
|
+
CVE-2026-125120,2026-11-10T19:37:32Z,"Mongoose: sanitizeFilter not applied on countDocuments",mongoose,9.0.0,9.9.2,,CRITICAL,CWE-943,
|
|
5330
|
+
CVE-2026-125332,2026-11-10T21:17:14Z,"Forge: TLS client crash on an unsupported ServerHello compression method",node-forge,0,1.4.3,,MODERATE,CWE-20;CWE-248,
|
|
5331
|
+
CVE-2026-125333,2026-11-10T21:16:22Z,"Forge: ReDoS in forge.http response header and cookie trimming",node-forge,0.1.2,1.4.3,,MODERATE,CWE-1333,
|
|
5332
|
+
CVE-2026-125334,2026-11-10T21:14:26Z,"Forge: TLS client crash on a handshake record received without a session",node-forge,0,1.4.3,,MODERATE,CWE-476,
|
|
5333
|
+
CVE-2026-125335,2026-11-10T21:18:23Z,"Forge: Ed25519 signature verification accepts small-order public keys",node-forge,0,1.4.3,,LOW,CWE-347,
|
|
5277
5334
|
CVE-2026-12537,2026-04-24T19:30:01Z,"Gemini CLI: Remote Code Execution via workspace trust and tool allowlisting bypasses",@google/gemini-cli,0,0.39.1,,CRITICAL,"CWE-20;CWE-200;CWE-77;CWE-78",
|
|
5278
5335
|
CVE-2026-12537,2026-04-24T19:30:01Z,"Gemini CLI: Remote Code Execution via workspace trust and tool allowlisting bypasses",@google/gemini-cli,0.40.0-preview.2,0.40.0-preview.3,,CRITICAL,"CWE-20;CWE-200;CWE-77;CWE-78",
|
|
5279
5336
|
CVE-2026-12590,2026-07-20T23:23:26Z,"body-parser vulnerable to denial of service when invalid limit value silently disables size enforcement",body-parser,0,1.20.6,,LOW,CWE-770,
|
|
5280
5337
|
CVE-2026-12590,2026-07-20T23:23:26Z,"body-parser vulnerable to denial of service when invalid limit value silently disables size enforcement",body-parser,2.0.0,2.3.0,,LOW,CWE-770,
|
|
5338
|
+
CVE-2026-126066,2026-11-10T21:09:44Z,"fast-xml-parser: Quadratic CPU consumption scanning unterminated stop-node tags",fast-xml-parser,0,5.12.0,,LOW,CWE-407,
|
|
5339
|
+
CVE-2026-126187,2026-11-10T22:44:12Z,"React: Unauthenticated Remote Code Execution in React Server Components","react-server-dom-turbopack",19.0.0,19.0.9,,CRITICAL,CWE-502,
|
|
5340
|
+
CVE-2026-126187,2026-11-10T22:44:12Z,"React: Unauthenticated Remote Code Execution in React Server Components","react-server-dom-turbopack",19.1.0,19.1.10,,CRITICAL,CWE-502,
|
|
5341
|
+
CVE-2026-126187,2026-11-10T22:44:12Z,"React: Unauthenticated Remote Code Execution in React Server Components","react-server-dom-turbopack",19.2.0,19.2.9,,CRITICAL,CWE-502,
|
|
5342
|
+
CVE-2026-126187,2026-11-10T22:44:12Z,"React: Unauthenticated Remote Code Execution in React Server Components","react-server-dom-turbopack",19.3.0,19.3.1,,CRITICAL,CWE-502,
|
|
5343
|
+
CVE-2026-126187,2026-11-10T22:44:12Z,"React: Unauthenticated Remote Code Execution in React Server Components",react-server-dom-parcel,19.0.0,19.0.9,,CRITICAL,CWE-502,
|
|
5344
|
+
CVE-2026-126187,2026-11-10T22:44:12Z,"React: Unauthenticated Remote Code Execution in React Server Components",react-server-dom-parcel,19.1.0,19.1.10,,CRITICAL,CWE-502,
|
|
5345
|
+
CVE-2026-126187,2026-11-10T22:44:12Z,"React: Unauthenticated Remote Code Execution in React Server Components",react-server-dom-parcel,19.2.0,19.2.9,,CRITICAL,CWE-502,
|
|
5346
|
+
CVE-2026-126187,2026-11-10T22:44:12Z,"React: Unauthenticated Remote Code Execution in React Server Components",react-server-dom-parcel,19.3.0,19.3.1,,CRITICAL,CWE-502,
|
|
5347
|
+
CVE-2026-126187,2026-11-10T22:44:12Z,"React: Unauthenticated Remote Code Execution in React Server Components",react-server-dom-webpack,19.0.0,19.0.9,,CRITICAL,CWE-502,
|
|
5348
|
+
CVE-2026-126187,2026-11-10T22:44:12Z,"React: Unauthenticated Remote Code Execution in React Server Components",react-server-dom-webpack,19.1.0,19.1.10,,CRITICAL,CWE-502,
|
|
5349
|
+
CVE-2026-126187,2026-11-10T22:44:12Z,"React: Unauthenticated Remote Code Execution in React Server Components",react-server-dom-webpack,19.2.0,19.2.9,,CRITICAL,CWE-502,
|
|
5350
|
+
CVE-2026-126187,2026-11-10T22:44:12Z,"React: Unauthenticated Remote Code Execution in React Server Components",react-server-dom-webpack,19.3.0,19.3.1,,CRITICAL,CWE-502,
|
|
5351
|
+
CVE-2026-126210,2026-11-12T21:28:02Z,"@hono/node-server: Backslash in the request path is parsed as a path separator, bypassing path-based access control at a reverse proxy",@hono/node-server,0,1.19.18,,MODERATE,CWE-436,
|
|
5352
|
+
CVE-2026-126210,2026-11-12T21:28:02Z,"@hono/node-server: Backslash in the request path is parsed as a path separator, bypassing path-based access control at a reverse proxy",@hono/node-server,2.0.0,2.1.6,,MODERATE,CWE-436,
|
|
5353
|
+
CVE-2026-126343,2026-11-12T21:32:48Z,"@hono/node-server: Unhandled `ECONNRESET` on the socket during an asynchronous WebSocket upgrade crashes the process",@hono/node-server,2.0.0,2.1.6,,MODERATE,CWE-248,
|
|
5354
|
+
CVE-2026-126345,2026-11-12T21:42:12Z,"basic-ftp: Uncaught TypeError in MLSD directory-listing parser via __proto__ fact name causes DoS in Client.list()",basic-ftp,0,6.2.4,,MODERATE,CWE-1321;CWE-248,
|
|
5355
|
+
CVE-2026-126346,2026-11-12T22:23:50Z,"basic-ftp: Uncaught exception crashes the Node.js process when a password (or resumed-download path) contains CR/LF",basic-ftp,0,6.2.3,,MODERATE,CWE-248;CWE-755,
|
|
5356
|
+
CVE-2026-126355,2026-11-12T23:31:25Z,"Hono: `csrf()` does not check requests sent by hyperlink auditing (`text/ping`)",hono,0,4.13.16,,MODERATE,CWE-352,
|
|
5357
|
+
CVE-2026-126356,2026-11-12T23:30:45Z,"Hono: `validator('form')` skips validation for `multipart/form-data` requests with extra parameters",hono,4.5.1,4.13.16,,MODERATE,CWE-1471;CWE-20,
|
|
5358
|
+
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
|
+
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
|
+
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,
|
|
5361
|
+
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
|
+
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
|
+
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,
|
|
5364
|
+
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",astro,5.14.3,7.4.7,,MODERATE,CWE-178;CWE-22,
|
|
5365
|
+
CVE-2026-126367,2026-11-12T23:21:57Z,"@grpc/grpc-js: safe_regex incorrectly applies partial string matching for patterns with alternation",@grpc/grpc-js-xds,0,1.13.2,,MODERATE,CWE-625;CWE-863,
|
|
5366
|
+
CVE-2026-126367,2026-11-12T23:21:57Z,"@grpc/grpc-js: safe_regex incorrectly applies partial string matching for patterns with alternation",@grpc/grpc-js-xds,1.14.0,1.14.2,,MODERATE,CWE-625;CWE-863,
|
|
5281
5367
|
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
|
+
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
|
+
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,
|
|
5282
5370
|
CVE-2026-12866,2026-06-23T06:30:41Z,"expr-eval vulnerable to Code Execution",expr-eval,0,,2.0.2,CRITICAL,CWE-94,
|
|
5283
5371
|
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,
|
|
5284
5372
|
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,
|
|
@@ -8721,6 +8809,8 @@ CVE-2026-77426,2026-09-22T20:36:42Z,"Unleash: Missing await on permission check
|
|
|
8721
8809
|
CVE-2026-77465,2026-09-03T20:56:13Z,"toml-node: Uncontrolled Recursion",toml,0,4.2.0,,HIGH,CWE-674,
|
|
8722
8810
|
CVE-2026-77615,2026-09-18T13:11:59Z,"Opencast: Stored XSS in Paella player via WebVTT/DFXP caption cue text",paella-core,0,1.50.6,,HIGH,CWE-79,
|
|
8723
8811
|
CVE-2026-7768,2026-05-08T17:13:38Z,"@fastify/accepts-serializer Vulnerable to Denial of Service via Unbounded Accept Header Cache Growth","@fastify/accepts-serializer",0,6.0.4,,HIGH,CWE-770,
|
|
8812
|
+
CVE-2026-79914,2026-11-10T19:20:14Z,"NocoBase: @nocobase/plugin-action-custom-request allows server-side request forgery through runtime URL overrides","@nocobase/plugin-action-custom-request",2.1.0-alpha.8,2.1.15,,MODERATE,CWE-918,
|
|
8813
|
+
CVE-2026-79914,2026-11-10T19:20:14Z,"NocoBase: @nocobase/plugin-action-custom-request allows server-side request forgery through runtime URL overrides","@nocobase/plugin-action-custom-request",2.2.0-alpha.1,2.2.0-alpha.4,,MODERATE,CWE-918,
|
|
8724
8814
|
CVE-2026-8026,2026-05-06T15:32:41Z,"Flowise: Bcrypt Password Hash Exposure",flowise,0,,3.0.12,MODERATE,CWE-200;CWE-312,
|
|
8725
8815
|
CVE-2026-8115,2026-05-08T00:31:35Z,"short-video-maker has a path traversal vulnerability",short-video-maker,0,,1.3.4,MODERATE,CWE-22,
|
|
8726
8816
|
CVE-2026-81176,2026-09-17T20:28:21Z,"Svelte devalue: DoS via malformed input",devalue,0,5.9.2,,MODERATE,CWE-770,
|
|
@@ -8924,6 +9014,7 @@ CVE-2026-88062,2026-09-10T21:22:12Z," OmniRoute ACP Custom-Agent Remote Code Exe
|
|
|
8924
9014
|
CVE-2026-8813,2026-05-29T17:58:37Z,"ExifReader is vulnerable to denial of service via crafted ICC `mluc` tag",exifreader,2.10.0,4.39.0,,HIGH,CWE-1284,
|
|
8925
9015
|
CVE-2026-8814,2026-05-29T17:52:26Z,"ExifReader is vulnerable to denial of service via unbounded decompression of image metadata",exifreader,4.20.0,4.39.0,,MODERATE,CWE-409,
|
|
8926
9016
|
CVE-2026-88932,2026-09-28T21:34:58Z,"multer vulnerable to Denial of Service via orphaned disk writes on aborted uploads",multer,2.2.0,2.4.0,,MODERATE,CWE-400;CWE-459,
|
|
9017
|
+
CVE-2026-88968,2026-11-09T22:42:03Z,"Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace","@anthropic-ai/claude-code",0,2.1.251,,HIGH,CWE-367;CWE-59,
|
|
8927
9018
|
CVE-2026-88976,2026-09-17T20:32:47Z,"@platejs/core HTML deserialization can trigger browser behavior during parsing",@platejs/core,0,53.3.11,,MODERATE,CWE-79,
|
|
8928
9019
|
CVE-2026-88976,2026-09-17T20:32:47Z,"@platejs/core HTML deserialization can trigger browser behavior during parsing",@platejs/core,54.0.0-beta.0,,54.0.0-beta.1,MODERATE,CWE-79,
|
|
8929
9020
|
CVE-2026-90711,2026-10-05T23:30:26Z,"proxy-addr vulnerable to IP spoofing via IPv4-mapped IPv6 trust subnet",proxy-addr,1.1.0,2.0.8,,CRITICAL,CWE-290;CWE-348;CWE-697,
|
|
@@ -8987,6 +9078,9 @@ CVE-2026-94545,2026-10-27T14:46:43Z,"Satori-generated SVG has improper escaping"
|
|
|
8987
9078
|
CVE-2026-9495,2026-05-26T13:30:54Z,"@koa/router has an Access Control Bypass",@koa/router,14.0.0,15.0.0,,MODERATE,CWE-284,
|
|
8988
9079
|
CVE-2026-9496,2026-05-26T13:30:54Z,"pacote is vulnerable to Denial of Service (DoS) via the addGitSha function",pacote,11.2.7,21.5.1,,HIGH,CWE-1333;CWE-400,
|
|
8989
9080
|
CVE-2026-9520,2026-05-26T13:30:53Z,"Blitz has a Cross-site Scripting issue",blitz,0,,3.0.2,LOW,CWE-79,
|
|
9081
|
+
CVE-2026-95860,2026-11-10T15:56:52Z,"node-opcua: Namespace-Level RBAC Fail-Open - Anonymous Write/Call Bypass via Unbound `DefaultRolePermissions",node-opcua,2.42.0,2.180.0,,CRITICAL,"CWE-1188;CWE-285;CWE-636;CWE-863",
|
|
9082
|
+
CVE-2026-95860,2026-11-10T15:56:52Z,"node-opcua: Namespace-Level RBAC Fail-Open - Anonymous Write/Call Bypass via Unbound `DefaultRolePermissions",node-opcua-address-space,2.42.0,2.180.0,,CRITICAL,"CWE-1188;CWE-285;CWE-636;CWE-863",
|
|
9083
|
+
CVE-2026-95860,2026-11-10T15:56:52Z,"node-opcua: Namespace-Level RBAC Fail-Open - Anonymous Write/Call Bypass via Unbound `DefaultRolePermissions",node-opcua-server,2.42.0,2.180.0,,CRITICAL,"CWE-1188;CWE-285;CWE-636;CWE-863",
|
|
8990
9084
|
CVE-2026-9595,2026-06-17T18:13:31Z,"webpack-dev-server vulnerable to HMR WebSocket interception via permissive user proxies",webpack-dev-server,0,5.2.5,,MODERATE,CWE-346;CWE-441,
|
|
8991
9085
|
CVE-2026-9673,2026-05-28T06:31:09Z,"json-2-csv vulnerable to CSV Injection via the preventCsvInjection optio",json-2-csv,3.15.0,5.5.11,,MODERATE,CWE-1236,
|
|
8992
9086
|
CVE-2026-9675,2026-06-18T14:28:10Z,"undici WebSocket client vulnerable to denial of service via cumulative fragment bypass",undici,8.0.0,8.5.0,,HIGH,CWE-400;CWE-770,
|
|
@@ -8999,6 +9093,8 @@ CVE-2026-9679,2026-06-19T14:21:30Z,"undici vulnerable to HTTP header injection v
|
|
|
8999
9093
|
CVE-2026-9697,2026-06-18T14:28:21Z,"undici vulnerable to TLS certificate validation bypass via dropped requestTls in SOCKS5 ProxyAgent",undici,7.23.0,7.28.0,,HIGH,CWE-295,
|
|
9000
9094
|
CVE-2026-9697,2026-06-18T14:28:21Z,"undici vulnerable to TLS certificate validation bypass via dropped requestTls in SOCKS5 ProxyAgent",undici,8.0.0,8.5.0,,HIGH,CWE-295,
|
|
9001
9095
|
CVE-2026-97058,2026-09-24T15:31:31Z,"Withdrawn Advisory: sprintf-js vulnerable to denial of service through unbounded precision specifiers",sprintf-js,0,,1.1.3,MODERATE,CWE-1284,
|
|
9096
|
+
CVE-2026-97705,2026-11-09T22:31:16Z,"Moleculer: Unauthenticated Denial of Service via negative length field in the TCP transporter packet parser",moleculer,0,0.14.36,,HIGH,CWE-835,
|
|
9097
|
+
CVE-2026-97705,2026-11-09T22:31:16Z,"Moleculer: Unauthenticated Denial of Service via negative length field in the TCP transporter packet parser",moleculer,0.15.0-beta1,0.15.2,,HIGH,CWE-835,
|
|
9002
9098
|
CVE-2026-97711,2026-09-30T15:40:05Z,"Serialize JavaScript: Cross-site scripting (XSS) via unescaped </script> in serialized function bodies",serialize-javascript,7.1.1,7.1.2,,LOW,CWE-79;CWE-80,
|
|
9003
9099
|
GHSA-224h-p7p5-rh85,2020-09-01T17:32:26Z,"Directory Traversal in wenluhong1",wenluhong1,0.0.0,,,HIGH,CWE-22,
|
|
9004
9100
|
GHSA-224p-v68g-5g8f,2025-08-26T18:45:55Z,"GraphQL Armor Max-Depth Plugin Bypass via fragment caching","@escape.tech/graphql-armor-max-depth",0,2.4.2,,MODERATE,CWE-400,
|
|
@@ -9267,7 +9363,6 @@ GHSA-4wcx-c9c4-89p2,2020-09-11T21:23:30Z,"Malicious Package in react-datepicker-
|
|
|
9267
9363
|
GHSA-4whq-r978-2x68,2021-05-04T17:43:52Z,"Arbitrary code execution in ExifTool",exiftool-vendored,0,14.3.0,,HIGH,CWE-74,
|
|
9268
9364
|
GHSA-4wv4-mgfq-598v,2021-03-12T23:00:19Z,"Code injection in nobelprizeparser",nobelprizeparser,0,1.0.2,,CRITICAL,CWE-94,
|
|
9269
9365
|
GHSA-4ww2-rjh2-xpv9,2026-08-01T15:30:27Z,"Duplicate Advisory: Axios: Deep formToJSON Key Recursion Can Cause Denial of Service",axios,1.0.0,,,MODERATE,CWE-400,
|
|
9270
|
-
GHSA-4x48-cgf9-q33f,2026-04-14T23:22:48Z,"Novu has SSRF via conditions filter webhook bypasses validateUrlSsrf() protection",@novu/api,0,3.15.0,,HIGH,CWE-918,
|
|
9271
9366
|
GHSA-4x6x-782q-jfc4,2020-09-03T02:38:47Z,"Command Injection in node-wifi",node-wifi,0,2.0.12,,CRITICAL,CWE-77,
|
|
9272
9367
|
GHSA-4x7c-cx64-49w8,2020-08-19T22:06:03Z,"Regular Expression Denial of Service in is-my-json-valid",is-my-json-valid,0,1.4.1,,LOW,,
|
|
9273
9368
|
GHSA-4x7c-cx64-49w8,2020-08-19T22:06:03Z,"Regular Expression Denial of Service in is-my-json-valid",is-my-json-valid,2.0.0,2.17.2,,LOW,,
|
|
@@ -9534,6 +9629,7 @@ GHSA-7j93-5m2h-rvjx,2020-09-04T15:32:46Z,"Malicious Package in bconi",bconi,0.0.
|
|
|
9534
9629
|
GHSA-7jfh-2xc9-ccv7,2019-05-31T23:46:40Z,"Cross-Site Scripting in public",public,0,0.1.4,,LOW,CWE-79,
|
|
9535
9630
|
GHSA-7jm2-g593-4qrc,2026-04-25T23:51:11Z,"OpenClaw: Agent gateway config mutations could change protected operator settings",openclaw,0,2026.4.20,,MODERATE,CWE-1220;CWE-285,
|
|
9536
9631
|
GHSA-7m7q-q53v-j47v,2021-02-25T02:01:47Z,"Regular Expression Denial of Service",marked,0.5.0,0.6.1,,MODERATE,,
|
|
9632
|
+
GHSA-7m8x-x364-m26j,2026-11-12T19:14:00Z,"Signal K Server: Buffered logs exposed to unauthenticated WebSocket clients",signalk-server,0,2.31.0-beta.1,,MODERATE,CWE-306,
|
|
9537
9633
|
GHSA-7p6w-x2gr-rrf8,2020-09-02T21:28:05Z,"ag-grid Cross-Site Scripting vulnerability",ag-grid,0,14.0.0,,HIGH,CWE-79,
|
|
9538
9634
|
GHSA-7q64-3rg2-h9pf,2026-02-27T18:31:06Z,"Duplicate Advisory: Nest has a Fastify URL Encoding Middleware Bypass",@nestjs/platform-fastify,0,11.1.14,,HIGH,CWE-863,
|
|
9539
9635
|
GHSA-7q9c-hpx7-9cwm,2026-09-04T21:43:13Z,"TypeSpec: Unauthenticated Remote Shutdown of Spector Mock Server via POST /.admin/stop",@typespec/spector,0,0.1.0-alpha.27,,HIGH,CWE-306,
|
|
@@ -9918,7 +10014,6 @@ GHSA-ffhm-8fwq-7q27,2026-06-13T00:34:32Z,"Duplicate Advisory: OpenClaw: PowerShe
|
|
|
9918
10014
|
GHSA-ffr4-mrhv-vfr2,2026-03-21T03:31:14Z,"Duplicate Advisory: OpenClaw has browser trace/download path symlink escape in temp output handling",openclaw,0,,,MODERATE,CWE-59,
|
|
9919
10015
|
GHSA-fg72-q65g-wm5w,2026-09-06T12:30:23Z,"Duplicate Advisory: H3: Unbounded Chunked Cookie Count in Session Cleanup Loop may Lead to Denial of Service",h3,2.0.0-beta.4,,,HIGH,CWE-400,
|
|
9920
10016
|
GHSA-fgp6-8g62-qx6w,2020-09-03T17:01:45Z,"Malicious Package in smartsearchwp",smartsearchwp,0,,,CRITICAL,CWE-506,
|
|
9921
|
-
GHSA-fhp4-pr5j-46m5,2026-06-26T20:55:18Z,"Muhammara has a NULL pointer dereference in LZWDecode filter when DecodeParms omits EarlyChange key",muhammara,0,6.0.5,,HIGH,CWE-476,
|
|
9922
10017
|
GHSA-fj2x-mqqp-3v2w,2026-10-02T22:45:12Z,"Trigger.dev: Trigger CLI debug deployment logs expose resolved environment secret values",trigger.dev,0,4.5.9,,MODERATE,CWE-532,
|
|
9923
10018
|
GHSA-fj93-7wm4-8x2g,2020-09-02T21:22:47Z,"Cross-Site Scripting in jquery-mobile",jquery-mobile,0,,,HIGH,CWE-79,
|
|
9924
10019
|
GHSA-fjh6-8679-9pch,2025-11-14T20:57:31Z,"Flowise does not Prevent Bypass of Password Confirmation - Unverified Password Change",flowise-ui,0,3.0.10,,HIGH,CWE-306;CWE-620,
|
|
@@ -10627,7 +10722,6 @@ GHSA-vf5m-q45w-8mh9,2020-09-03T23:00:25Z,"Malicious Package in js-qha3",js-qha3,
|
|
|
10627
10722
|
GHSA-vf8q-pw7h-r2x2,2020-09-11T21:15:54Z,"Malicious Package in epress",epress,0,,,CRITICAL,CWE-506,
|
|
10628
10723
|
GHSA-vg44-fw64-cpjx,2020-03-24T15:08:59Z,"Incorrect Account Used for Signing","@metamask/eth-ledger-bridge-keyring",0,0.2.2,,HIGH,CWE-287,
|
|
10629
10724
|
GHSA-vg44-fw64-cpjx,2020-03-24T15:08:59Z,"Incorrect Account Used for Signing","eth-ledger-bridge-keyring",0,0.2.1,,HIGH,CWE-287,
|
|
10630
|
-
GHSA-vg6v-j97m-h5xq,2026-07-28T14:59:22Z,"@novu/application-generic: `validateUrlSsrf` permits CGNAT (100.64.0.0/10) destinations — affects Workflow HTTP request step + Webhook filter condition","@novu/application-generic",0,3.17.0,,MODERATE,CWE-918,
|
|
10631
10725
|
GHSA-vh4c-j2xv-9pv9,2026-03-21T03:31:15Z,"Duplicate Advisory: OpenClaw: BlueBubbles beta plugin webhook auth hardening (remove passwordless fallback)",openclaw,0,,,MODERATE,CWE-306,
|
|
10632
10726
|
GHSA-vh4h-fvqf-q9wv,2025-05-01T03:31:17Z,"Duplicate Advisory: @cloudflare/workers-oauth-provider PKCE bypass via downgrade attack","@cloudflare/workers-oauth-provider",0,0.0.5,,MODERATE,CWE-287,
|
|
10633
10727
|
GHSA-vh5j-5fhq-9xwg,2025-06-27T22:06:48Z,"Taylor has race condition in /get-patch that allows purchase token replay",taylored,0,8.1.3,,LOW,CWE-362,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrewrite/recipes-nodejs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.67.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.108.0",
|
|
29
29
|
"mutative": "^1.1.0",
|
|
30
30
|
"semver": "^7.7.3"
|
|
31
31
|
},
|
package/src/index.ts
CHANGED
|
@@ -72,6 +72,11 @@ import {MigrateHpagentToHttpsProxyAgent} from "./migrate/hpagent/migrate-hpagent
|
|
|
72
72
|
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
|
+
import {MigrateAwsSdkV2ToV3} from "./migrate/aws-sdk-v3/migrate-aws-sdk-v2-to-v3";
|
|
76
|
+
import {ReplaceAwsSdkV2Clients} from "./migrate/aws-sdk-v3/replace-aws-sdk-v2-clients";
|
|
77
|
+
import {FindAwsSdkV2ManualMigrations} from "./migrate/aws-sdk-v3/find-aws-sdk-v2-manual-migrations";
|
|
78
|
+
import {AddAwsSdkV3Dependencies} from "./migrate/aws-sdk-v3/add-aws-sdk-v3-dependencies";
|
|
79
|
+
import {RemoveUnusedAwsSdkV2Dependency} from "./migrate/aws-sdk-v3/remove-unused-aws-sdk-v2-dependency";
|
|
75
80
|
import {MigrateSourceMapSupportToNative} from "./migrate/source-map-support/migrate-source-map-support-to-native";
|
|
76
81
|
import {FindSourceMapSupportManualMigrations} from "./migrate/source-map-support/find-source-map-support-manual-migrations";
|
|
77
82
|
import {EnableSourceMapsAtLaunch} from "./migrate/source-map-support/enable-source-maps-at-launch";
|
|
@@ -119,6 +124,7 @@ export const NodeJS: CategoryDescriptor[] = [{displayName: "Node.js"}];
|
|
|
119
124
|
export const Migrate: CategoryDescriptor[] = [...NodeJS, {displayName: "Migrate"}];
|
|
120
125
|
export const FsExtra: CategoryDescriptor[] = [...Migrate, {displayName: "fs-extra"}];
|
|
121
126
|
export const Hpagent: CategoryDescriptor[] = [...Migrate, {displayName: "hpagent"}];
|
|
127
|
+
export const AwsSdk: CategoryDescriptor[] = [...Migrate, {displayName: "AWS SDK"}];
|
|
122
128
|
export const SourceMapSupport: CategoryDescriptor[] = [...Migrate, {displayName: "source-map-support"}];
|
|
123
129
|
export const ExpressRequestId: CategoryDescriptor[] = [...Migrate, {displayName: "express-request-id"}];
|
|
124
130
|
export const Storybook: CategoryDescriptor[] = [...Migrate, {displayName: "Storybook"}];
|
|
@@ -199,6 +205,11 @@ export async function activate(marketplace: RecipeMarketplace): Promise<void> {
|
|
|
199
205
|
await marketplace.install(ReplaceHpagent, Hpagent);
|
|
200
206
|
await marketplace.install(FindHpagentManualMigrations, Hpagent);
|
|
201
207
|
await marketplace.install(SwapHpagentDependency, Hpagent);
|
|
208
|
+
await marketplace.install(MigrateAwsSdkV2ToV3, AwsSdk);
|
|
209
|
+
await marketplace.install(ReplaceAwsSdkV2Clients, AwsSdk);
|
|
210
|
+
await marketplace.install(FindAwsSdkV2ManualMigrations, AwsSdk);
|
|
211
|
+
await marketplace.install(AddAwsSdkV3Dependencies, AwsSdk);
|
|
212
|
+
await marketplace.install(RemoveUnusedAwsSdkV2Dependency, AwsSdk);
|
|
202
213
|
await marketplace.install(MigrateSourceMapSupportToNative, SourceMapSupport);
|
|
203
214
|
await marketplace.install(ReplaceSourceMapSupportInstall, SourceMapSupport);
|
|
204
215
|
await marketplace.install(ReplaceSourceMapSupportApi, SourceMapSupport);
|
|
@@ -0,0 +1,71 @@
|
|
|
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, Option, ScanningRecipe, Tree, TreeVisitor} from "@openrewrite/rewrite";
|
|
8
|
+
import {Json, jsonLiteral, setAt} from "@openrewrite/rewrite/json";
|
|
9
|
+
import {dirOf, isPackageJson, packageData} from "../package-json-support";
|
|
10
|
+
import {AWS_SDK, SECTIONS} from "./aws-sdk-v3-support";
|
|
11
|
+
import {AwsSdkPlan, AwsSdkScan, awsSdkScanner, newAwsSdkScan, normalizePath} from "./aws-sdk-v3-plan";
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
export class AddAwsSdkV3Dependencies extends ScanningRecipe<AwsSdkScan> {
|
|
15
|
+
readonly name = "org.openrewrite.node.migrate.aws-sdk-v3.add-aws-sdk-v3-dependencies";
|
|
16
|
+
readonly displayName = "Add the AWS SDK v3 packages a project imports";
|
|
17
|
+
readonly description = "In each `package.json` that declares `aws-sdk`, adds the `@aws-sdk/*` packages its " +
|
|
18
|
+
"sources import once `ReplaceAwsSdkV2Clients` has migrated them, in the section that declares `aws-sdk`, and " +
|
|
19
|
+
"`@smithy/smithy-client` where a source names the generic `ServiceException`. Each is declared at `3.x` " +
|
|
20
|
+
"(`4.x` for `@smithy/smithy-client`) where the lock group's oldest declared Node.js (`engines.node`, `.nvmrc`, " +
|
|
21
|
+
"`.node-version`, a Lambda runtime) runs the newest release or declares none, at the bounded range of the " +
|
|
22
|
+
"last releases that support it (`>=3.723.0 <3.968.0` for Node.js 18), and not at all where no release does. " +
|
|
23
|
+
"Like it, it leaves alone every `package.json` of a lock group where a source stays on v2. " +
|
|
24
|
+
"The lock file is not regenerated by this recipe: `RemoveUnusedAwsSdkV2Dependency` regenerates it where " +
|
|
25
|
+
"it removes `aws-sdk`, and elsewhere the package manager's install has to.";
|
|
26
|
+
readonly tags = ["aws-sdk", "aws"];
|
|
27
|
+
|
|
28
|
+
@Option({
|
|
29
|
+
displayName: "Version",
|
|
30
|
+
description: "The version range to declare for each added `@aws-sdk/*` package. A lock group whose oldest " +
|
|
31
|
+
"declared Node.js can't run the newest release it admits is left on v2.",
|
|
32
|
+
example: ">=3.723.0 <3.968.0",
|
|
33
|
+
required: false
|
|
34
|
+
})
|
|
35
|
+
version?: string;
|
|
36
|
+
|
|
37
|
+
constructor(options?: {version?: string}) {
|
|
38
|
+
super(options);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
initialValue(_ctx: ExecutionContext): AwsSdkScan {
|
|
42
|
+
return newAwsSdkScan();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
async scanner(scan: AwsSdkScan): Promise<TreeVisitor<any, ExecutionContext>> {
|
|
46
|
+
return awsSdkScanner(scan);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
async editorWithData(scan: AwsSdkScan): Promise<TreeVisitor<any, ExecutionContext>> {
|
|
50
|
+
const plan = new AwsSdkPlan(scan, this.version);
|
|
51
|
+
return new class extends TreeVisitor<Tree, ExecutionContext> {
|
|
52
|
+
async visit<R extends Tree>(tree: Tree, _p: ExecutionContext): Promise<R | undefined> {
|
|
53
|
+
const sourcePath: string | undefined = (tree as any).sourcePath;
|
|
54
|
+
if (tree.kind !== Json.Kind.Document || !sourcePath || !isPackageJson(sourcePath)) return tree as R;
|
|
55
|
+
const dir = dirOf(normalizePath(sourcePath));
|
|
56
|
+
const packages = plan.packagesOf(dir);
|
|
57
|
+
const versions = plan.versionsOf(dir);
|
|
58
|
+
if (packages.size === 0 || !versions) return tree as R;
|
|
59
|
+
const pkg = packageData(tree as Json.Document);
|
|
60
|
+
const section = SECTIONS.find(s => pkg?.[s]?.[AWS_SDK] !== undefined);
|
|
61
|
+
if (!pkg || !section) return tree as R;
|
|
62
|
+
let result = tree as Json.Document;
|
|
63
|
+
for (const name of [...packages].sort()) {
|
|
64
|
+
if (SECTIONS.some(s => pkg[s]?.[name] !== undefined)) continue;
|
|
65
|
+
result = setAt(result, [section, name], jsonLiteral(name.startsWith('@smithy/') ? versions.smithy! : versions.awsSdk), {position: 'sorted'});
|
|
66
|
+
}
|
|
67
|
+
return result as unknown as R;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
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 {Column, DataTable, ExecutionContext} from "@openrewrite/rewrite";
|
|
8
|
+
import {J} from "@openrewrite/rewrite/java";
|
|
9
|
+
import {JavaScriptVisitor, JS} from "@openrewrite/rewrite/javascript";
|
|
10
|
+
import * as semver from "semver";
|
|
11
|
+
import {lowestNodeMajor} from "../increase-node-engine-version";
|
|
12
|
+
|
|
13
|
+
interface NodeFloor {
|
|
14
|
+
/** The first release whose `engines.node` asks for `node`. */
|
|
15
|
+
from: string;
|
|
16
|
+
node: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// From npm by scripts/aws-sdk-v3-node-floors.js on 2026-11-11, newest first; ADR 003 cites them.
|
|
20
|
+
const AWS_SDK_NODE_FLOORS: NodeFloor[] = [{"from":"3.968.0","node":20},{"from":"3.723.0","node":18},{"from":"3.567.0","node":16},{"from":"3.201.0","node":14},{"from":"3.46.0","node":12},{"from":"3.0.0","node":10}];
|
|
21
|
+
const SMITHY_NODE_FLOORS: NodeFloor[] = [{"from":"4.0.0","node":18},{"from":"3.0.0","node":16},{"from":"1.0.0","node":14}];
|
|
22
|
+
/** One minor above the newest @smithy/smithy-client the script saw. */
|
|
23
|
+
const SMITHY_BOUND = '4.16.0';
|
|
24
|
+
|
|
25
|
+
/** Below it, Node.js's own npm resolves no v3 release to a tree that declares support for it (ADR 003). */
|
|
26
|
+
export const OLDEST_NODE = 18;
|
|
27
|
+
|
|
28
|
+
/** The Node.js the newest v3 release asks for, which `3.x` installs. */
|
|
29
|
+
export const CURRENT_NODE = AWS_SDK_NODE_FLOORS[0].node;
|
|
30
|
+
|
|
31
|
+
/** What a lock group of the given oldest Node.js declares, or undefined where no v3 release installs on it. */
|
|
32
|
+
export interface V3Versions {
|
|
33
|
+
awsSdk: string;
|
|
34
|
+
/** Undefined where no `@smithy/smithy-client` release supports the Node.js. */
|
|
35
|
+
smithy?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function band(floors: NodeFloor[], i: number): string {
|
|
39
|
+
return i === 0 ? `>=${floors[0].from}` : `>=${floors[i].from} <${floors[i - 1].from}`;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** The releases of `floors` that the given Node.js runs, newest first. */
|
|
43
|
+
function boundedFor(floors: NodeFloor[], node: number, newestBound: string): string | undefined {
|
|
44
|
+
const i = floors.findIndex(f => f.node <= node);
|
|
45
|
+
if (i < 0) return undefined;
|
|
46
|
+
return i === 0 ? `>=${floors[0].from} <${newestBound}` : band(floors, i);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function smithyFor(node: number): string | undefined {
|
|
50
|
+
return node >= CURRENT_NODE ? `${semver.major(SMITHY_NODE_FLOORS[0].from)}.x` : boundedFor(SMITHY_NODE_FLOORS, node, SMITHY_BOUND);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** The Node.js the newest release `range` admits asks for, which is the one npm installs. */
|
|
54
|
+
export function nodeNeededBy(range: string): number {
|
|
55
|
+
for (let i = 0; i < AWS_SDK_NODE_FLOORS.length; i++) {
|
|
56
|
+
try {
|
|
57
|
+
if (semver.intersects(range, band(AWS_SDK_NODE_FLOORS, i))) return AWS_SDK_NODE_FLOORS[i].node;
|
|
58
|
+
} catch {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
// A dist-tag or a range of no v3 release: judged as the newest.
|
|
63
|
+
return CURRENT_NODE;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** What a lock group whose oldest Node.js is `node` declares, given the `version` option if set. */
|
|
67
|
+
export function v3VersionsFor(node: number | undefined, version: string | undefined): V3Versions | undefined {
|
|
68
|
+
const target = node ?? CURRENT_NODE;
|
|
69
|
+
if (version !== undefined) {
|
|
70
|
+
return nodeNeededBy(version) <= target ? {awsSdk: version, smithy: smithyFor(target)} : undefined;
|
|
71
|
+
}
|
|
72
|
+
if (target >= CURRENT_NODE) return {awsSdk: '3.x', smithy: smithyFor(target)};
|
|
73
|
+
if (target < OLDEST_NODE) return undefined;
|
|
74
|
+
return {awsSdk: band(AWS_SDK_NODE_FLOORS, AWS_SDK_NODE_FLOORS.findIndex(f => f.node <= target)), smithy: smithyFor(target)};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** Where a project says which Node.js it runs on. */
|
|
78
|
+
export interface NodeSignal {
|
|
79
|
+
path: string;
|
|
80
|
+
/** As the file writes it, e.g. `engines.node >=18`, `.nvmrc 16`, `runtime: nodejs18.x`. */
|
|
81
|
+
declared: string;
|
|
82
|
+
node: number;
|
|
83
|
+
/** `engines.node` speaks for its own `package.json`; a file elsewhere also for the projects beneath it. */
|
|
84
|
+
engines: boolean;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** `engines.node` and Volta's pin, where they name a lowest version; `*` and `>=0.10` say nothing. */
|
|
88
|
+
export function packageJsonSignals(path: string, pkg: Record<string, any> | undefined): NodeSignal[] {
|
|
89
|
+
const signals: NodeSignal[] = [];
|
|
90
|
+
for (const [key, range] of [['engines.node', pkg?.engines?.node], ['volta.node', pkg?.volta?.node]]) {
|
|
91
|
+
const node = typeof range === 'string' ? lowestNodeMajor(range) : undefined;
|
|
92
|
+
if (node) signals.push({path, declared: `${key} ${range}`, node, engines: true});
|
|
93
|
+
}
|
|
94
|
+
return signals;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const LTS_CODENAMES: Record<string, number> = {
|
|
98
|
+
argon: 4, boron: 6, carbon: 8, dubnium: 10, erbium: 12, fermium: 14, gallium: 16, hydrogen: 18, iron: 20, jod: 22,
|
|
99
|
+
krypton: 24
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export const NODE_VERSION_FILE = /(^|\/)\.(nvmrc|node-version)$/;
|
|
103
|
+
|
|
104
|
+
/** `.nvmrc` or `.node-version`: `18`, `v18.17.0` or `lts/hydrogen`. `lts/*`, `node` and `stable` follow the newest. */
|
|
105
|
+
export function versionFileSignal(path: string, text: string): NodeSignal | undefined {
|
|
106
|
+
const value = text.split('\n').map(line => line.replace(/#.*/, '').trim()).find(line => line.length > 0);
|
|
107
|
+
if (!value) return undefined;
|
|
108
|
+
const lts = /^lts\/([a-z]+)$/i.exec(value);
|
|
109
|
+
const node = lts ? LTS_CODENAMES[lts[1].toLowerCase()] : lowestNodeMajor(value.replace(/^v/i, ''));
|
|
110
|
+
return node ? {path, declared: `${path.substring(path.lastIndexOf('/') + 1)} ${value}`, node, engines: false} : undefined;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const YAML_RUNTIME = /^[ \t-]*runtime[ \t]*:[ \t]*['"]?nodejs(\d+)\.x\b/gim;
|
|
114
|
+
|
|
115
|
+
/** The Lambda runtimes of a Serverless, SAM or CloudFormation template (`runtime: nodejs18.x`, `Runtime: nodejs18.x`). */
|
|
116
|
+
export function yamlSignals(path: string, text: string): NodeSignal[] {
|
|
117
|
+
return [...text.matchAll(YAML_RUNTIME)].map(m => ({path, declared: m[0].replace(/^[ \t-]*/, ''), node: parseInt(m[1], 10), engines: false}));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
const RUNTIME_LITERAL = /^nodejs(\d+)\.x$/;
|
|
121
|
+
const CDK_RUNTIME = /^NODEJS_(\d+)_X$/;
|
|
122
|
+
|
|
123
|
+
/** The Lambda runtimes a source names: CDK's `Runtime.NODEJS_18_X`, or `'nodejs18.x'` as SST and `serverless.ts` write it. */
|
|
124
|
+
export async function sourceRuntimes(cu: JS.CompilationUnit): Promise<{declared: string; node: number}[]> {
|
|
125
|
+
const found: {declared: string; node: number}[] = [];
|
|
126
|
+
await new class extends JavaScriptVisitor<ExecutionContext> {
|
|
127
|
+
protected override async visitLiteral(literal: J.Literal, p: ExecutionContext): Promise<J | undefined> {
|
|
128
|
+
const m = typeof literal.value === 'string' ? RUNTIME_LITERAL.exec(literal.value) : null;
|
|
129
|
+
if (m) found.push({declared: `'${literal.value}'`, node: parseInt(m[1], 10)});
|
|
130
|
+
return super.visitLiteral(literal, p);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
protected override async visitFieldAccess(fieldAccess: J.FieldAccess, p: ExecutionContext): Promise<J | undefined> {
|
|
134
|
+
const name = fieldAccess.name.element.simpleName;
|
|
135
|
+
const m = CDK_RUNTIME.exec(name);
|
|
136
|
+
const target = fieldAccess.target;
|
|
137
|
+
const onRuntime = (target.kind === J.Kind.Identifier && (target as J.Identifier).simpleName === 'Runtime') ||
|
|
138
|
+
(target.kind === J.Kind.FieldAccess && (target as J.FieldAccess).name.element.simpleName === 'Runtime');
|
|
139
|
+
if (m && onRuntime) found.push({declared: `Runtime.${name}`, node: parseInt(m[1], 10)});
|
|
140
|
+
return super.visitFieldAccess(fieldAccess, p);
|
|
141
|
+
}
|
|
142
|
+
}().visit(cu, new ExecutionContext());
|
|
143
|
+
return found;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export class AwsSdkLockGroupNodeVersion {
|
|
147
|
+
@Column({displayName: "Lock group", description: "The `package.json` whose lock the group shares: a workspace root's, or a standalone project's."})
|
|
148
|
+
lockGroup!: string;
|
|
149
|
+
|
|
150
|
+
@Column({displayName: "Node.js version", description: "The oldest Node.js major the group declares, or empty where it declares none."})
|
|
151
|
+
nodeVersion!: string;
|
|
152
|
+
|
|
153
|
+
@Column({displayName: "Declared in", description: "The file that declares that version, and how (`engines.node`, `.nvmrc`, `.node-version`, a Lambda runtime)."})
|
|
154
|
+
declaredIn!: string;
|
|
155
|
+
|
|
156
|
+
@Column({displayName: "AWS SDK v3 version", description: "The range declared for each added `@aws-sdk/*` package, or empty where the group is left on v2."})
|
|
157
|
+
awsSdkVersion!: string;
|
|
158
|
+
|
|
159
|
+
@Column({displayName: "Note", description: "Why the group got that range, was left on v2, or should be checked by hand."})
|
|
160
|
+
note!: string;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function awsSdkLockGroupNodeVersions(): DataTable<AwsSdkLockGroupNodeVersion> {
|
|
164
|
+
return new DataTable<AwsSdkLockGroupNodeVersion>(
|
|
165
|
+
"org.openrewrite.node.table.AwsSdkLockGroupNodeVersions",
|
|
166
|
+
"AWS SDK v3 lock groups by Node.js version",
|
|
167
|
+
"Each lock group whose sources migrate to v3, with the oldest Node.js it declares and the `@aws-sdk/*` range " +
|
|
168
|
+
"that Node.js runs. A group whose Node.js no v3 release supports is left on v2, and one that declares no " +
|
|
169
|
+
"Node.js migrates at the newest v3 and should be checked against the Node.js it runs on.",
|
|
170
|
+
AwsSdkLockGroupNodeVersion,
|
|
171
|
+
);
|
|
172
|
+
}
|