Expanding input shaped like {a}}}}...,z} takes time quadratic in the
number of literal } characters. The parser rewrites the string and
restarts the scan once per brace, and each rewrite also grows the
working string by about 25 characters. A 128 KB pattern blocks the
event loop for close to half a minute. The max and maxLength caps do
not help because the cost is in parsing, before any results exist.
Every major line in use here is affected, so this moves each pinned
copy to the patched release on its own line: 1.1.21, 2.1.7 and 5.0.12.
npm also re-synced stale metadata for the locally linked
@tursodatabase packages while rewriting the lockfiles.
Tests: ran the advisory's reproduction against serverless/javascript
before and after npm ci. On 2.1.4, n=32000 took 2358 ms. On 2.1.7 it
took 15 ms.
esbuild 0.27.7 falls in the range GHSA-g7r4-m6w7-qqqr names, so the
lockfile shipped a version that can read arbitrary files when its
development server runs on Windows. Nothing here starts that server --
tsup only uses the build API -- but the package should not carry a
flagged version.
tsup 8.5.1 is the newest release and asks for esbuild ^0.27.0, which
cannot reach a fixed version on its own: within that range only 0.27.0
through 0.27.2 are unaffected, and those are older than what is locked.
An override lifts esbuild past the range instead of downgrading it. tsup
builds against 0.28.2 without complaint and emits byte-identical output.
Tests: npm ci; npm run build (dist hashes unchanged from the 0.27.7
build); npx ava integration-tests/protocol.test.mjs; npm audit reports no
vulnerabilities.
Refresh tar, brace-expansion, and js-yaml to fixed versions in the serverless package and differential test locks.
Tests: npm ci --ignore-scripts; npm run build; npx ava integration-tests/protocol.test.mjs; npm audit --package-lock-only
Co-authored-by: pedro muniz <pedro.muniz.carlo@gmail.com>
Addresses GHSA-f23m-r3pf-42rh / CVE-2026-2950: lodash versions <= 4.17.23
are vulnerable to prototype pollution in `_.unset` and `_.omit`. The
prior fix for CVE-2025-13465 only guarded against string key members,
so an attacker can bypass it by passing array-wrapped path segments,
allowing deletion of properties from built-in prototypes such as
`Object.prototype`, `Number.prototype`, and `String.prototype`.
lodash is only used transitively by dev dependencies in our JS example
and test projects (ava, react-native toolchain), but bump it anyway to
clear the dependabot alert.
Reorganize serverless SDKs under a top-level serverless/ directory
to support multi-language serverless drivers alongside the existing
bindings/ convention.