Skip to content

Release 03/12/26 - #3367

Open
CorieW wants to merge 64 commits into
masterfrom
next
Open

CorieW wants to merge 64 commits into
masterfrom
next

Conversation

@CorieW

@CorieW CorieW commented Dec 3, 2026

Copy link
Copy Markdown
Member

No description provided.

dependabot Bot and others added 30 commits July 20, 2026 20:50
…y with 12 updates

Bumps the version-minor-and-patch group with 12 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [ts-jest](https://github.com/kulshekhar/ts-jest) | `29.4.9` | `29.4.11` |
| [@genkit-ai/google-genai](https://github.com/genkit-ai/genkit/tree/HEAD/js/plugins/google-genai) | `1.37.0` | `1.39.0` |
| [@types/express-serve-static-core](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/express-serve-static-core) | `4.19.8` | `4.19.9` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `20.19.39` | `20.19.43` |
| [genkit](https://github.com/genkit-ai/genkit/tree/HEAD/js/genkit) | `1.33.0` | `1.39.0` |
| [js-yaml](https://github.com/nodeca/js-yaml) | `3.14.2` | `3.15.0` |
| [nodemailer](https://github.com/nodemailer/nodemailer) | `9.0.1` | `9.0.3` |
| [smtp-server](https://github.com/nodemailer/smtp-server) | `3.19.1` | `3.19.2` |
| [@types/node-fetch](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node-fetch) | `2.6.4` | `2.6.13` |
| [@genkit-ai/vertexai](https://github.com/genkit-ai/genkit/tree/HEAD/js/plugins/vertexai) | `1.37.0` | `1.39.0` |
| [sharp](https://github.com/lovell/sharp) | `0.34.5` | `0.35.3` |
| [nanoid](https://github.com/ai/nanoid) | `5.1.9` | `5.1.16` |



Updates `ts-jest` from 29.4.9 to 29.4.11
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](kulshekhar/ts-jest@v29.4.9...v29.4.11)

Updates `@genkit-ai/google-genai` from 1.37.0 to 1.39.0
- [Release notes](https://github.com/genkit-ai/genkit/releases)
- [Commits](https://github.com/genkit-ai/genkit/commits/@genkit-ai/google-genai@1.39.0/js/plugins/google-genai)

Updates `@types/express-serve-static-core` from 4.19.8 to 4.19.9
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/express-serve-static-core)

Updates `@types/node` from 20.19.39 to 20.19.43
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `genkit` from 1.33.0 to 1.39.0
- [Release notes](https://github.com/genkit-ai/genkit/releases)
- [Commits](https://github.com/genkit-ai/genkit/commits/genkit@1.39.0/js/genkit)

Updates `js-yaml` from 3.14.2 to 3.15.0
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](nodeca/js-yaml@3.14.2...3.15.0)

Updates `nodemailer` from 9.0.1 to 9.0.3
- [Release notes](https://github.com/nodemailer/nodemailer/releases)
- [Changelog](https://github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md)
- [Commits](nodemailer/nodemailer@v9.0.1...v9.0.3)

Updates `smtp-server` from 3.19.1 to 3.19.2
- [Release notes](https://github.com/nodemailer/smtp-server/releases)
- [Changelog](https://github.com/nodemailer/smtp-server/blob/master/CHANGELOG.md)
- [Commits](nodemailer/smtp-server@v3.19.1...v3.19.2)

Updates `@types/node-fetch` from 2.6.4 to 2.6.13
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node-fetch)

Updates `@genkit-ai/vertexai` from 1.37.0 to 1.39.0
- [Release notes](https://github.com/genkit-ai/genkit/releases)
- [Commits](https://github.com/genkit-ai/genkit/commits/@genkit-ai/vertexai@1.39.0/js/plugins/vertexai)

Updates `sharp` from 0.34.5 to 0.35.3
- [Release notes](https://github.com/lovell/sharp/releases)
- [Commits](lovell/sharp@v0.34.5...v0.35.3)

Updates `nanoid` from 5.1.9 to 5.1.16
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](ai/nanoid@5.1.9...5.1.16)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-version: 29.4.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: version-minor-and-patch
- dependency-name: "@genkit-ai/google-genai"
  dependency-version: 1.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: version-minor-and-patch
- dependency-name: "@types/express-serve-static-core"
  dependency-version: 4.19.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: version-minor-and-patch
- dependency-name: "@types/node"
  dependency-version: 20.19.43
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: version-minor-and-patch
- dependency-name: genkit
  dependency-version: 1.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: version-minor-and-patch
- dependency-name: js-yaml
  dependency-version: 3.15.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: version-minor-and-patch
- dependency-name: nodemailer
  dependency-version: 9.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: version-minor-and-patch
- dependency-name: smtp-server
  dependency-version: 3.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: version-minor-and-patch
- dependency-name: "@types/node-fetch"
  dependency-version: 2.6.13
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: version-minor-and-patch
- dependency-name: "@genkit-ai/vertexai"
  dependency-version: 1.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: version-minor-and-patch
- dependency-name: sharp
  dependency-version: 0.35.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: version-minor-and-patch
- dependency-name: nanoid
  dependency-version: 5.1.16
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: version-minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…n-minor-and-patch-5f24554eda

chore(deps): bump the version-minor-and-patch group across 1 directory with 12 updates
* chore: backfill Apache license headers in ts/js files

Claude-Session: https://claude.ai/code/session_013dz9GhC3metut6HFswPavu

* ci: enforce Apache license headers with addlicense

Adds a license job to the Validate workflow that runs google/addlicense
in check mode over tracked ts/js files. Run npm run license:fix locally
to add missing headers.

Claude-Session: https://claude.ai/code/session_013dz9GhC3metut6HFswPavu

* ci: pin validate workflow actions to commit SHAs

Required by zizmor unpinned-uses mandatory policy.

Claude-Session: https://claude.ai/code/session_013dz9GhC3metut6HFswPavu

* ci: restrict validate workflow to read-only permissions

Resolves zizmor excessive-permissions finding.

Claude-Session: https://claude.ai/code/session_013dz9GhC3metut6HFswPavu

* chore: harden addlicense script

NUL-separated file list for filenames with special characters, and
reject unknown modes instead of defaulting to fix.

Claude-Session: https://claude.ai/code/session_013dz9GhC3metut6HFswPavu
Kits should be published from the kits branch
Use NPM provenance instead of wombat
This helps debug action failures when several releases are happening at once and they fail early
Print inputs as the first step of release-kits
## Summary

`npm publish --provenance` requires `repository.url` to resolve to the
GitHub repo that built the package. Two BigQuery script packages
declared a bare `github.com/firebase/extensions.git` — no scheme, so npm
can't normalise it and provenance fails.

Prefixed both with `git+https://`, matching
`firestore-bigquery-change-tracker`, which already publishes fine:

- `@firebaseextensions/fs-bq-schema-views`
- `@firebaseextensions/fs-bq-import-collection`

Broken since `--provenance` was added in March 2026. No other
`package.json` on `next` is affected.
Syncs release-kit.yaml byte-for-byte with the version that landed on
kits in #2990. This copy never executes (Release Kit is always
dispatched from kits; next has no kits/ directories); it only lists the
workflow in the Actions UI, and it had drifted to show the old broken
versioning logic. No behavior change. Will need re-syncing if #2991
lands on kits.
Syncs release-kit.yaml byte-for-byte with the #2993 version on kits
(trusted publishing, checkout/push/release pinned to kits). The #2992
copy on next authenticated via the removed NPM_TOKEN and checked out the
dispatched ref, so dispatching from next failed at the test job. The
#2993 file is dispatch-ref-agnostic, making the two copies safely
identical. No behavior change beyond fixing dispatch-from-next.
Berlioz and others added 9 commits December 2, 2026 15:46
…the extension lockfile (#3361)

The extension's `functions/package-lock.json` (version 0.2.6) pins 17
production advisories, which ship in every install built from it; this
moves 10 packages to patched releases or removes them (6 within the
ranges the extension already allows; `body-parser`, `qs`, `node-forge`
and `uuid` by updating `firebase-admin` 12 → 14 and `firebase-functions`
4 → 7), fixing all 17 advisories.

## Advisories (production `npm audit`)

| Severity | Before | After |
|---|---|---|
| Critical | 2 | 0 |
| High | 4 | 0 |
| Moderate | 11 | 0 |
| Low | 0 | 0 |
| **Total** | **17** | **0** |

## Dependency changes

### Fixed

| Package | Before | After | Severity | Advisory | What changed |
|---|---|---|---|---|---|
| `proxy-addr` | 2.0.7 | 2.0.8 | Critical |
[GHSA-jqcg-44mw-7w3h](GHSA-jqcg-44mw-7w3h)
(proxy-addr vulnerable to IP spoofing via IPv4-mapped IPv6 trust subnet)
| Security fix only (IPv4-mapped IPv6 trust subnets) |
| `websocket-driver` | 0.7.4 | 0.8.3 | Critical |
[GHSA-xv26-6w52-cph6](GHSA-xv26-6w52-cph6)
(websocket-driver: Message corruption via abuse of protocol length
headers)<br>[GHSA-v36f-rjg3-3v46](GHSA-v36f-rjg3-3v46)
(websocket-driver: Message corruption and denial of service triggered by
crafted client
message)<br>[GHSA-c4gv-fww2-jp3r](GHSA-c4gv-fww2-jp3r)
(websocket-driver: Denial of service triggered by malformed
Sec-WebSocket-Key1
header)<br>[GHSA-9g4r-f5gq-qjrr](GHSA-9g4r-f5gq-qjrr)
(websocket-driver: Denial of service triggered by client sending a
single pong
frame)<br>[GHSA-7487-9gcw-9w8w](GHSA-7487-9gcw-9w8w)
(websocket-driver: Memory exhaustion triggered by buffering of
zero-length fragmented
frames)<br>[GHSA-v674-7268-hvqh](GHSA-v674-7268-hvqh)
(websocket-driver: Memory exhaustion triggered by buffering of data
received after socket is
closed)<br>[GHSA-mp7j-qc5w-4988](GHSA-mp7j-qc5w-4988)
(websocket-driver: Resource limit bypass via message compression) | 0.8:
old draft-75/76 protocols off by default, buffered data capped at
`maxLength`, no buffering after close; not loaded through
`firebase-admin`, whose Realtime Database client is a self-contained
bundle |
| `@fastify/busboy` | 3.2.0 | 3.2.6 | High |
[GHSA-xjh9-v7x6-24jw](GHSA-xjh9-v7x6-24jw)
(@fastify/busboy vulnerable to Denial of Service via oversized multipart
boundary)<br>[GHSA-x8mw-p69m-v3mx](GHSA-x8mw-p69m-v3mx)
(@fastify/busboy vulnerable to Denial of Service via prototype-named
multipart part
header)<br>[GHSA-gxm5-99cw-xjw9](GHSA-gxm5-99cw-xjw9)
(@fastify/busboy vulnerable to CRLF injection via multipart
Content-Disposition filename and name) | Security fixes plus multipart
parsing fixes (split CRLF terminators, epilogue after closing boundary,
urlencoded edge cases) |
| `@grpc/grpc-js` | 1.14.4 | 1.14.7 | High |
[GHSA-m9gg-hp2v-232j](GHSA-m9gg-hp2v-232j)
(@grpc/grpc-js: In certain configurations, getAuthContext can return
unauthorized certificates as though they were
authorized)<br>[GHSA-f596-whhp-79r4](GHSA-f596-whhp-79r4)
(@grpc/grpc-js: The server transmits some error messages thrown by
method handlers to the client in status messages) | Security fixes plus
retry fixes (retries stop after cancel; retries that sometimes didn't
fire now do) |
| `body-parser` | 1.20.5 | 2.4.0 | High |
[GHSA-27r3-jxmh-p828](GHSA-27r3-jxmh-p828)
(body-parser vulnerable to Denial of Service via trailing bytes after a
compressed request
body)<br>[GHSA-v422-hmwv-36x6](GHSA-v422-hmwv-36x6)
(body-parser vulnerable to denial of service when invalid limit value
silently disables size enforcement) | Now 2.x through `express` 5
(`firebase-functions` 7.4); only used by HTTPS functions, which this
extension doesn't have |
| `node-forge` | 1.4.0 | removed | High |
[GHSA-7wch-p9px-956x](GHSA-7wch-p9px-956x)
(Forge: Regular expression denial of service in PEM decoding
(pem.decode))<br>[GHSA-jc66-7q78-782g](GHSA-jc66-7q78-782g)
(Forge: PKCS#12 MAC forgery and constant-key PBE via zero iteration
count)<br>[GHSA-8hrf-8g6f-7xwp](GHSA-8hrf-8g6f-7xwp)
(Forge: Denial of service in TLS record processing via a record
interleaved with a fragmented handshake
message)<br>[GHSA-hqq3-7jhf-c5jx](GHSA-hqq3-7jhf-c5jx)
(Forge: Denial of service in TLS record processing via call stack
exhaustion)<br>[GHSA-5x38-2vff-x55p](GHSA-5x38-2vff-x55p)
(Forge: X.509 basicConstraints bypass in verifyCertificateChain() via
deprecated extension OIDs 2.5.29.10 and
2.5.29.13)<br>[GHSA-rhr8-3pm8-cq29](GHSA-rhr8-3pm8-cq29)
(Forge: ASN.1 resource exhaustion via BIT STRING decoding in
asn1.fromDer)<br>[GHSA-6qrw-m8cv-hcxf](GHSA-6qrw-m8cv-hcxf)
(Forge: RSA PKCS#1 v1.5 signature forgery via non-canonical DigestInfo
encoding)<br>[GHSA-2g46-22mc-6gwp](GHSA-2g46-22mc-6gwp)
(node-forge: RSA PKCS#1 v1.5 signature forgery via extra elements in
nested
DigestAlgorithm)<br>[GHSA-6wvx-3r32-xmcg](GHSA-6wvx-3r32-xmcg)
(Forge: Prototype Pollution in forge.http cookie handling via a
malicious
Set-Cookie)<br>[GHSA-525v-9gp9-w22h](GHSA-525v-9gp9-w22h)
(Forge: TLS client crash when the server sends no
certificate)<br>[GHSA-5cwg-6vw7-rj6p](GHSA-5cwg-6vw7-rj6p)
(Forge: AES-GCM authentication bypass via unvalidated tagLength
option)<br>[GHSA-h46v-rmh6-fq4f](GHSA-h46v-rmh6-fq4f)
(Forge: X.509 pathLenConstraint not enforced by verifyCertificateChain()
for CA certificates without
keyUsage)<br>[GHSA-w4xr-hqv8-ch44](GHSA-w4xr-hqv8-ch44)
(Forge: TLS client crash on an unsupported ServerHello compression
method)<br>[GHSA-j8rw-jp99-435v](GHSA-j8rw-jp99-435v)
(Forge: TLS client crash on a handshake record received without a
session)<br>[GHSA-6cv4-p8m7-4r25](GHSA-6cv4-p8m7-4r25)
(Forge: ReDoS in forge.http response header and cookie
trimming)<br>[GHSA-4642-5mcj-2rqw](GHSA-4642-5mcj-2rqw)
(Forge: ASN.1 OID first arc truncation in
asn1.oidToDer)<br>[GHSA-h6cr-wjv9-3cpp](GHSA-h6cr-wjv9-3cpp)
(Forge: Denial of Service via infinite loop in BigInteger.modInverse()
with negative input (incomplete fix of
CVE-2026-33891))<br>[GHSA-4487-j8r4-4g2f](GHSA-4487-j8r4-4g2f)
(Forge: verifyCertificateChain() removes trusted CA certificates with
the same subject from the CA
store)<br>[GHSA-9wg5-mj3p-v49q](GHSA-9wg5-mj3p-v49q)
(Forge: Certificate signature verified with the issuer's RSA signature
scheme)<br>[GHSA-2vgq-wchc-25w7](GHSA-2vgq-wchc-25w7)
(Forge: Incomplete PKCS#7 padding validation in AES/DES CBC and ECB
decryption)<br>[GHSA-6889-vf6x-f3g5](GHSA-6889-vf6x-f3g5)
(Forge: Ed25519 signature verification accepts small-order public
keys)<br>[GHSA-w73w-hhm4-q25p](GHSA-w73w-hhm4-q25p)
(Forge: RSA multi-prime private keys are read as two-prime keys, and
signatures leak a factor of the modulus) | No longer installed:
`firebase-admin` 14 dropped it |
| `fast-xml-parser` | 5.7.3 | 5.12.1 | Moderate |
[GHSA-7cfw-w2rf-f3jc](GHSA-7cfw-w2rf-f3jc)
(fast-xml-parser: Quadratic-time (ReDoS-class) denial of service in
XMLValidator attribute scanner, default
options)<br>[GHSA-474x-hrwr-fgx4](GHSA-474x-hrwr-fgx4)
(fast-xml-parser: Quadratic CPU consumption scanning unterminated
stop-node tags) | Minor releases with parser and validator performance
fixes, `Uint8Array` input decoded as UTF-8, and the stop-node scanning
fix |
| `protobufjs` | 7.6.4 | 7.6.6 | Moderate |
[GHSA-j3f2-48v5-ccww](GHSA-j3f2-48v5-ccww)
(protobufjs: Denial of Service via infinite loop in .proto option
parsing) | Patch releases backporting 8.x parsing fixes (length-prefix
and string-escape checks) |
| `qs` | 6.15.2 | 6.17.1 | Moderate |
[GHSA-x5fp-wj9c-mxmx](GHSA-x5fp-wj9c-mxmx)
(qs array-limit bypass via bracket-key comma
parsing)<br>[GHSA-4mjr-xmp4-gh2g](GHSA-4mjr-xmp4-gh2g)
(qs: Denial of Service via Attacker Controlled
isBuffer)<br>[GHSA-6pq8-jhm2-2vcw](GHSA-6pq8-jhm2-2vcw)
(qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError
on array elements carrying a non-callable own toString (DoS)) | Security
fixes (array-limit and `stringify` DoS); now pulled in by `express` 5,
only used for HTTP query strings and form bodies, which this extension
doesn't parse |
| `uuid` | 9.0.1, 10.0.0 | removed | Moderate |
[GHSA-w5hq-g745-h8pq](GHSA-w5hq-g745-h8pq)
(uuid: Missing buffer bounds check in v3/v5/v6 when buf is provided) |
No longer installed: `firebase-admin` 14 and its updated Google Cloud
clients don't depend on it |

### Other version changes

| Package | Change | Why |
|---|---|---|
| `firebase-admin` | 12.7.0 → 14.5.1 | Direct dependency, `^12.1.0` →
`^14.5.1` (see Notes) |
| `firebase-functions` | 4.9.0 → 7.4.0 | Direct dependency, `^4.9.0` →
`^7.4.0` (see Notes) |
| `@google-cloud/firestore`, `@google-cloud/storage`, `google-gax`,
`google-auth-library`, `gaxios`, `gcp-metadata`, `retry-request`,
`teeny-request` | 7.11.6 → 9.4.1, 7.21.0 → 8.4.0, 4.6.1 → 6.17.0, 9.8.0
→ 11.3.4, 6.5.0 → 7.3.1, 6.1.0 → 9.2.3, 7.0.2 → 9.1.0, 9.0.0 → 11.1.1 |
Pulled up by `firebase-admin` 14; these carried the `uuid` advisory |
| `@google-cloud/paginator`, `@google-cloud/projectify`,
`@google-cloud/promisify`, `proto3-json-serializer`,
`@grpc/proto-loader`, `@opentelemetry/api`, `node-fetch`,
`http-proxy-agent`, `https-proxy-agent`, `agent-base`, `bignumber.js`,
`yargs`, `end-of-stream`, `string_decoder` | 5.0.0 → 7.2.0, 4.0.0 →
6.2.1, 4.0.0 → 6.2.1, 2.0.2 → 4.1.0, 0.7.15 → 0.8.1, 1.9.1 → 1.10.0,
2.7.0 → 3.3.2, 5.0.0 → 7.0.2, 7.0.4 → 7.0.6, 7.1.1 → 7.1.4, 9.1.2 →
9.3.1, 17.7.2 → 17.7.3, 1.4.4 → 1.4.5, 1.3.0 → 1.4.0 | Pulled up by the
Google Cloud client updates |
| `@google-cloud/firestore-api`, `google-logging-utils`, `gaxios`
(copies under `google-auth-library` and `gcp-metadata`),
`data-uri-to-buffer`, `fetch-blob`, `formdata-polyfill`,
`node-domexception`, `web-streams-polyfill` | — → 0.7.1, 2.2.0, 8.3.3,
4.0.1, 3.2.0, 4.0.10, 1.0.0, 3.3.3 | New dependencies of the updated
Google Cloud clients and `node-fetch` 3 |
| `gtoken`, `form-data`, `combined-stream`, `delayed-stream`,
`asynckit`, `es-set-tostringtag`, `has-tostringtag`, `arrify`,
`is-stream`, `whatwg-url`, `tr46`, `webidl-conversions`,
`@tootallnate/once`, `@types/request`, `@types/caseless`,
`@types/tough-cookie`, `@types/long` | removed | No longer needed by the
updated Google Cloud clients |
| `@firebase/database-compat`, `@firebase/database`,
`@firebase/database-types`, `@firebase/util`, `@firebase/component`,
`@firebase/logger`, `@firebase/app-types`,
`@firebase/app-check-interop-types`, `@firebase/auth-interop-types`,
`tslib` | 1.0.8 → 2.1.7, 1.0.8 → 1.1.5, 1.0.5 → 1.0.22, 1.10.0 → 1.15.3,
0.6.9 → 0.7.5, 0.4.2 → 0.5.2, 0.9.2 → 0.9.6, 0.3.2 → 0.3.5, 0.2.3 →
0.2.6, 2.8.1 → 2.9.1 | Pulled up by `firebase-admin` 14
(`@firebase/database-compat` held at 2.1.7, see Notes) |
| `jwks-rsa`, `jose`, `lru-memoizer`, `lru-cache` (copies under
`jwks-rsa` and `lru-memoizer`) | 3.2.2 → 4.1.0, 4.15.9 → 6.2.19, 2.3.0 →
3.0.0, — → 11.5.4 | Pulled up by `firebase-admin` 14 |
| `farmhash-modern`, `@types/node` (copy under `firebase-admin`) |
removed | No longer used by `firebase-admin` 14 |
| `express` | 4.22.2 → 5.3.0 | Pulled up by `firebase-functions` 7.4
(only used by HTTPS functions) |
| `accepts`, `content-disposition`, `content-type`, `cookie`,
`cookie-signature`, `debug`, `ms`, `encodeurl`, `finalhandler`, `fresh`,
`http-errors`, `iconv-lite`, `media-typer`, `merge-descriptors`,
`mime-db`, `mime-types`, `negotiator`, `on-finished`, `path-to-regexp`,
`range-parser`, `raw-body`, `send`, `serve-static`, `statuses`,
`type-is` | 1.3.8 → 2.0.0, 0.5.4 → 2.0.1, 1.0.5 → 2.1.0, 0.7.1 → 0.7.2,
1.0.6 → 1.2.2, 2.6.9 → 4.4.3, 2.0.0 → 2.1.3, 2.0.0 → 2.0.3, 1.3.1 →
2.1.1, 0.5.2 → 2.0.0, 2.0.0 → 2.0.1, 0.4.24 → 0.7.3, 0.3.0 → 1.1.1,
1.0.3 → 2.0.0, 1.52.0 → 1.54.0, 2.1.35 → 3.0.2, 0.6.3 → 1.1.0, 2.4.1 →
2.4.2, 0.1.13 → 8.4.2, 1.2.1 → 1.3.0, 2.5.3 → 3.0.2, 0.19.0 → 1.2.1,
1.16.2 → 2.2.1, 2.0.1 → 2.0.2, 1.6.18 → 2.1.0 | Pulled up by `express` 5
|
| `router`, `is-promise` | — → 2.3.0, 4.0.0 | New dependencies of
`express` 5 |
| `array-flatten`, `destroy`, `methods`, `utils-merge` | removed | No
longer used by `express` 5 |
| `@types/express`, `@types/body-parser`, `@types/serve-static`,
`@types/connect`, `@types/express-serve-static-core` (copy under
`@types/express`), `@types/http-errors` | 4.17.3 → 5.0.6, 1.19.1 →
2.2.0, 1.13.10 → 2.2.0, 3.4.35 → 3.4.38, — → 5.1.3, — → 2.0.5 | Types
pulled up by `firebase-functions` 7.4 |
| `@types/mime` | removed | No longer used by the updated types |
| `fast-xml-builder`, `@nodable/entities`, `path-expression-matcher`,
`strnum` | 1.1.9 → 1.3.2, 2.1.0 → 3.1.0, 1.5.0 → 1.6.2, 2.2.3 → 2.5.1 |
Pulled up by the `fast-xml-parser` update |
| `anynum`, `is-unsafe`, `xml-naming` | — → 1.0.1, 2.0.3, 0.3.1 | New
dependencies of updated `strnum`, `fast-xml-parser`, `fast-xml-builder`
|
| `side-channel`, `side-channel-list`, `object-inspect`,
`es-object-atoms` | 1.1.0 → 1.1.1, 1.0.0 → 1.0.1, 1.13.4 → 1.14.0, 1.1.1
→ 1.1.2 | Pulled up by the `qs` update |
| `websocket-extensions` | 0.1.4 → 0.3.0 | Pulled up by the
`websocket-driver` update |
| Nested duplicate copies of `debug`, `ms`, `agent-base`,
`https-proxy-agent`, `http-errors`, `statuses`, `encodeurl`, `mime` and
`@grpc/proto-loader` | removed | Their parents now use the top-level
versions or were updated |

## Notes

- Updated with in-range `npm update` plus two direct-dependency major
bumps, not `npm audit fix` (on `firestore-bigquery-export` it downgraded
`google-gax` 4.6.1 → 4.0.4 and pulled in a critical `protobufjs`). No
overrides.
- Why the majors: `uuid` (fixed in 11.1.1) came from `firebase-admin`
itself and from the `@google-cloud/firestore` 7 /
`@google-cloud/storage` 7 clients that `firebase-admin` 12 and 13
install, and it alone caused the moderate warnings on `firebase-admin`,
`@google-cloud/firestore`, `@google-cloud/storage`, `google-gax`,
`gaxios`, `retry-request` and `teeny-request`. `firebase-admin` 14 is
the first release free of it, and `firebase-functions` 7.4 is the first
release that allows `firebase-admin` 14 (4.x allows up to 12).
- Breaking changes checked against the source: `firebase-admin` 13/14
(Node 22+, removed legacy FCM, Instance ID and namespace APIs) and
`@google-cloud/firestore` 8/9 (Node 22+, type changes); the extension
only calls `initializeApp`, `getFirestore`, `runTransaction` /
`transaction.update`, `FieldValue.delete()` and
`getEventarc().channel().publish()`, all unchanged. `firebase-functions`
5–7 (v2 default entrypoint, `functions.config()` removed, TypeScript 5
typings); the extension only uses `onDocumentWritten` from
`v2/firestore` and `logger`.
- Source changes: `src/index.ts`: `firebase-functions` 7 adds enumerable
v1-compat `context` and `change` getters to the event, which the `{
data, ...context }` spread would copy into every `onStart` /
`onCompletion` payload, so they're left out. `tsconfig.json`:
`skipLibCheck: true` (as in `firestore-send-email`,
`storage-resize-images` and others), because `firebase-functions` 7's
typings don't compile under the extension's TypeScript 4.9. An offline
run of the handler on 6 kinds of document change gives the same logs,
Bitly requests and event payloads as `next`, except one extra internal
field (`_serializer.firestore`) in the snapshots serialized into
`onStart`'s `change`, which comes from `@google-cloud/firestore` 9.
- Runtime is `nodejs22`: `@firebase/database-compat` is held at 2.1.7 in
the lockfile (inside `firebase-admin`'s `^2.1.4`, no override) because
2.1.8 and its `@firebase/database` 1.1.6 require Node ≥ 24.12; re-check
this on future `npm update`s. `jwks-rsa` 4.1.0 needs Node ≥ 22.12, which
the current nodejs22 runtime meets. Every other production package
allows Node 22.
- Version and CHANGELOG left for the next release.

## Testing

| Check | Result |
|---|---|
| Build | ✅ (`npm ci` from the new lockfile, `npm run build`, and
`lib/index.js` loads) |
| Unit tests | ➖ No tests (placeholder script, fails the same way on
`next`) |
| Production `npm audit` | ✅ 17 → 0, no new advisories, no downgrades |
| Live smoke test | ✅ PASS |

### Smoke test

Deployed the extension's function code before (`490b13b`) and after
(`2929759`) the change side by side on a test project, each installed
with `npm ci` from its own lockfile on the `nodejs22` runtime, and ran
the same 32 checks on both, covering every function, the code that uses
the updated packages, the source changes, and the risks from their
changelogs. The Bitly checks (deploy, normal and invalid URLs, URL
change and removal, events and logs) were re-run on 2026-12-03 against
the real Bitly API on the same head.

| Area | Checks | Same | Differs | Not tested |
|---|---|---|---|---|
| Deploy and runtime settings | 2 | 1 | 1 | 0 |
| Functions (normal and error input) | 4 | 4 | 0 | 0 |
| Updated packages (code paths and changelog risks) | 24 | 19 | 5 | 0 |
| Events | 1 | 1 | 0 | 0 |
| Logs and severity | 1 | 1 | 0 | 0 |
| **Total** | **32** | **26** | **6** | **0** |

**Differences**

| ID | Check | Before | After | Verdict |
|---|---|---|---|---|
| a1 | Deploy warnings | CLI warns about an outdated
`firebase-functions` | No CLI warning; npm notes
`node-domexception@1.0.0` is deprecated (from `node-fetch` 3) |
Improvement |
| r-F3 | `onStart` event `change` payload | Snapshots' `_serializer` is
`{"allowUndefined":false}` | Also has `firestore: {"projectId": …}`
(only the project ID); nothing else differs | Expected (noted above) |
| r-A2 | Eventarc publish failure message | `Unexpected response with
status: 403 and body: …` | `Unexpected response with status: 403.` (same
`eventarc/unknown-error` code; body still on the error's `httpResponse`)
| Expected (`firebase-admin` 14 error revamp) |
| r-F6 | Cold start | Module load 1213 ms, first invocation 1.58 s |
Module load 1771 ms, first invocation 0.91 s; no memory or startup
warnings | Expected (Firestore client now loads at startup) |
| r-F4 | Mixed-type document (round 1) | `shortUrl` written | `shortUrl`
written, then overwritten by the test client's own `set()` committing
again | Flaky (test harness; identical in round 2) |
| x1 | Remove URL, then delete the document | `NOT_FOUND` from the
transaction for 1 of 3, then 2 of 3 documents | 1 of 3, then 0 of 3;
same message, code and `onError` payload; `opaqueData` no longer printed
| Flaky (both sides; timing race) |
…extension lockfile (#3362)

The extension's `functions/package-lock.json` (version 0.1.30) pins 84
production advisories, which ship in every install built from it; this
moves 17 vulnerable packages to patched releases (13 within the ranges
the extension already allows, including `express` 4.22.3 to let `qs`
reach 6.16, `uuid` through an override, and `glob`, `minimatch` and
`brace-expansion` through a `rimraf` override), fixing 30 advisories.

## Advisories (production `npm audit`)

| Severity | Before | After |
|---|---|---|
| Critical | 4 | 0 |
| High | 12 | 4 |
| Moderate | 68 | 50 |
| Low | 0 | 0 |
| **Total** | **84** | **54** |

## Dependency changes

### Fixed

| Package | Before | After | Severity | Advisory | What changed |
|---|---|---|---|---|---|
| `cross-spawn` | 7.0.6 | 7.1.2 | Critical |
[GHSA-ghv9-86vm-4v8m](GHSA-ghv9-86vm-4v8m)
(cross-spawn: Command injection on Windows when spawning batch files) |
Security fix only (Windows batch-file argument escaping); now installed
only for development, as the `rimraf` override drops `foreground-child`,
its only production parent |
| `handlebars` | 4.7.9 | 4.7.10 | Critical |
[GHSA-8r5x-fm3f-whwj](GHSA-8r5x-fm3f-whwj)
(Handlebars: JavaScript Injection via AST Type Confusion in compile
(bypass of
CVE-2026-33937))<br>[GHSA-p8wg-vrv2-v86f](GHSA-p8wg-vrv2-v86f)
(Handlebars: JavaScript Injection via Own Property Check
Bypass)<br>[GHSA-xw65-4hp5-5hc7](GHSA-xw65-4hp5-5hc7)
(Handlebars: JavaScript Injection via Unsafe Inline Embedding of
Precompiled Templates) | Security fixes in template compile and runtime
|
| `proxy-addr` | 2.0.7 | 2.0.8 | Critical |
[GHSA-jqcg-44mw-7w3h](GHSA-jqcg-44mw-7w3h)
(proxy-addr vulnerable to IP spoofing via IPv4-mapped IPv6 trust subnet)
| Security fix only (IPv4-mapped IPv6 trust subnets) |
| `websocket-driver` | 0.7.4 | 0.8.3 | Critical |
[GHSA-xv26-6w52-cph6](GHSA-xv26-6w52-cph6)
(websocket-driver: Message corruption via abuse of protocol length
headers)<br>[GHSA-v36f-rjg3-3v46](GHSA-v36f-rjg3-3v46)
(websocket-driver: Message corruption and denial of service triggered by
crafted client
message)<br>[GHSA-c4gv-fww2-jp3r](GHSA-c4gv-fww2-jp3r)
(websocket-driver: Denial of service triggered by malformed
Sec-WebSocket-Key1
header)<br>[GHSA-9g4r-f5gq-qjrr](GHSA-9g4r-f5gq-qjrr)
(websocket-driver: Denial of service triggered by client sending a
single pong
frame)<br>[GHSA-7487-9gcw-9w8w](GHSA-7487-9gcw-9w8w)
(websocket-driver: Memory exhaustion triggered by buffering of
zero-length fragmented
frames)<br>[GHSA-v674-7268-hvqh](GHSA-v674-7268-hvqh)
(websocket-driver: Memory exhaustion triggered by buffering of data
received after socket is
closed)<br>[GHSA-mp7j-qc5w-4988](GHSA-mp7j-qc5w-4988)
(websocket-driver: Resource limit bypass via message compression) | 0.8:
old draft-75/76 protocols off by default, buffered data capped at
`maxLength`, no buffering after close; not loaded through
`firebase-admin`, whose Realtime Database client is a self-contained
bundle |
| `@fastify/busboy` | 3.1.1 | 3.2.6 | High |
[GHSA-xjh9-v7x6-24jw](GHSA-xjh9-v7x6-24jw)
(@fastify/busboy vulnerable to Denial of Service via oversized multipart
boundary)<br>[GHSA-x8mw-p69m-v3mx](GHSA-x8mw-p69m-v3mx)
(@fastify/busboy vulnerable to Denial of Service via prototype-named
multipart part
header)<br>[GHSA-gxm5-99cw-xjw9](GHSA-gxm5-99cw-xjw9)
(@fastify/busboy vulnerable to CRLF injection via multipart
Content-Disposition filename and name) | Security fixes plus multipart
parsing fixes (split CRLF terminators, epilogue after closing boundary,
urlencoded edge cases) |
| `@grpc/grpc-js` | 1.14.4 | 1.14.7 | High |
[GHSA-m9gg-hp2v-232j](GHSA-m9gg-hp2v-232j)
(@grpc/grpc-js: In certain configurations, getAuthContext can return
unauthorized certificates as though they were
authorized)<br>[GHSA-f596-whhp-79r4](GHSA-f596-whhp-79r4)
(@grpc/grpc-js: The server transmits some error messages thrown by
method handlers to the client in status messages) | Security fixes plus
retry fixes (retries stop after cancel; retries that sometimes didn't
fire now do) |
| `body-parser` | 1.20.5 | 1.20.9 | High |
[GHSA-27r3-jxmh-p828](GHSA-27r3-jxmh-p828)
(body-parser vulnerable to Denial of Service via trailing bytes after a
compressed request
body)<br>[GHSA-v422-hmwv-36x6](GHSA-v422-hmwv-36x6)
(body-parser vulnerable to denial of service when invalid limit value
silently disables size enforcement) | Security fixes only (1.20.x line)
|
| `brace-expansion` | 2.1.2 | 5.1.2 | High |
[GHSA-mh99-v99m-4gvg](GHSA-mh99-v99m-4gvg)
(brace-expansion: DoS via unbounded expansion length causing an
out-of-memory process
crash)<br>[GHSA-rgw5-rvv9-x895](GHSA-rgw5-rvv9-x895)
(brace-expansion: DoS via unbounded intermediate arrays, bypassing the
CVE-2026-14257
mitigation)<br>[GHSA-qhr7-859c-m2p7](GHSA-qhr7-859c-m2p7)
(brace-expansion: DoS via uncontrolled recursion on nested brace groups
causing stack
exhaustion)<br>[GHSA-6j4f-fj2g-mc7p](GHSA-6j4f-fj2g-mc7p)
(brace-expansion: DoS via uncontrolled recursion in parseCommaParts
causing stack
exhaustion)<br>[GHSA-q2hr-2g5m-vwhr](GHSA-q2hr-2g5m-vwhr)
(brace-expansion: Quadratic-time expansion of the `{a},b}` rewrite
causes CPU denial of service) | Through the `rimraf` override
(`minimatch` 11 uses `brace-expansion` 5); `rimraf` isn't loaded at
runtime |
| `fast-uri` | 3.1.4 | 3.1.9 | High |
[GHSA-7p8r-x3mc-p8w7](GHSA-7p8r-x3mc-p8w7)
(fast-uri vulnerable to host confusion via backslash authority
introducer)<br>[GHSA-5jgf-p345-68v8](GHSA-5jgf-p345-68v8)
(fast-uri vulnerable to host confusion via skipped IDN canonicalization
on scheme-relative
references)<br>[GHSA-f65p-4m7j-42xc](GHSA-f65p-4m7j-42xc)
(fast-uri vulnerable to server-side request forgery via malformed IPv6
normalization)<br>[GHSA-fph4-wmhf-6fwf](GHSA-fph4-wmhf-6fwf)
(fast-uri vulnerable to server-side request forgery via repeated
hostname
percent-decoding)<br>[GHSA-jqff-g426-hqxp](GHSA-jqff-g426-hqxp)
(fast-uri vulnerable to host confusion via percent-encoded scheme
normalization)<br>[GHSA-qw65-cvwx-89v3](GHSA-qw65-cvwx-89v3)
(fast-uri vulnerable to authority injection via an unvalidated port in
serialize)<br>[GHSA-hrr3-gc8f-f4qj](GHSA-hrr3-gc8f-f4qj)
(fast-uri vulnerable to inconsistent host case normalization via
percent-encoded
octets)<br>[GHSA-w74x-v6f9-j3xg](GHSA-w74x-v6f9-j3xg)
(fast-uri vulnerable to URI scheme spoofing via percent-encoded scheme
decoding)<br>[GHSA-wjr9-j795-jxcr](GHSA-wjr9-j795-jxcr)
(fast-uri vulnerable to host confusion via unchecked WHATWG host
canonicalization)<br>[GHSA-xhq7-xmqj-769h](GHSA-xhq7-xmqj-769h)
(fast-uri vulnerable to improper path equivalence in relative reference
normalization)<br>[GHSA-333x-w4r6-6crp](GHSA-333x-w4r6-6crp)
(fast-uri vulnerable to scheme injection via an unescaped first-segment
colon in suffix references) | Security fixes in URI parsing and
normalization |
| `fast-xml-parser` | 5.9.3 | 5.12.1 | High |
[GHSA-8r6m-32jq-jx6q](GHSA-8r6m-32jq-jx6q)
(fast-xml-parser: Repeated DOCTYPE declarations reset entity expansion
limits)<br>[GHSA-7cfw-w2rf-f3jc](GHSA-7cfw-w2rf-f3jc)
(fast-xml-parser: Quadratic-time (ReDoS-class) denial of service in
XMLValidator attribute scanner, default
options)<br>[GHSA-474x-hrwr-fgx4](GHSA-474x-hrwr-fgx4)
(fast-xml-parser: Quadratic CPU consumption scanning unterminated
stop-node tags) | Minor releases with parser and validator performance
fixes, `Uint8Array` input decoded as UTF-8, and the stop-node scanning
fix |
| `node-forge` | 1.4.0 | 1.4.4 | High |
[GHSA-7wch-p9px-956x](GHSA-7wch-p9px-956x)
(Forge: Regular expression denial of service in PEM decoding
(pem.decode))<br>[GHSA-jc66-7q78-782g](GHSA-jc66-7q78-782g)
(Forge: PKCS#12 MAC forgery and constant-key PBE via zero iteration
count)<br>[GHSA-8hrf-8g6f-7xwp](GHSA-8hrf-8g6f-7xwp)
(Forge: Denial of service in TLS record processing via a record
interleaved with a fragmented handshake
message)<br>[GHSA-hqq3-7jhf-c5jx](GHSA-hqq3-7jhf-c5jx)
(Forge: Denial of service in TLS record processing via call stack
exhaustion)<br>[GHSA-5x38-2vff-x55p](GHSA-5x38-2vff-x55p)
(Forge: X.509 basicConstraints bypass in verifyCertificateChain() via
deprecated extension OIDs 2.5.29.10 and
2.5.29.13)<br>[GHSA-rhr8-3pm8-cq29](GHSA-rhr8-3pm8-cq29)
(Forge: ASN.1 resource exhaustion via BIT STRING decoding in
asn1.fromDer)<br>[GHSA-6qrw-m8cv-hcxf](GHSA-6qrw-m8cv-hcxf)
(Forge: RSA PKCS#1 v1.5 signature forgery via non-canonical DigestInfo
encoding)<br>[GHSA-2g46-22mc-6gwp](GHSA-2g46-22mc-6gwp)
(node-forge: RSA PKCS#1 v1.5 signature forgery via extra elements in
nested
DigestAlgorithm)<br>[GHSA-6wvx-3r32-xmcg](GHSA-6wvx-3r32-xmcg)
(Forge: Prototype Pollution in forge.http cookie handling via a
malicious
Set-Cookie)<br>[GHSA-525v-9gp9-w22h](GHSA-525v-9gp9-w22h)
(Forge: TLS client crash when the server sends no
certificate)<br>[GHSA-5cwg-6vw7-rj6p](GHSA-5cwg-6vw7-rj6p)
(Forge: AES-GCM authentication bypass via unvalidated tagLength
option)<br>[GHSA-h46v-rmh6-fq4f](GHSA-h46v-rmh6-fq4f)
(Forge: X.509 pathLenConstraint not enforced by verifyCertificateChain()
for CA certificates without
keyUsage)<br>[GHSA-w4xr-hqv8-ch44](GHSA-w4xr-hqv8-ch44)
(Forge: TLS client crash on an unsupported ServerHello compression
method)<br>[GHSA-j8rw-jp99-435v](GHSA-j8rw-jp99-435v)
(Forge: TLS client crash on a handshake record received without a
session)<br>[GHSA-6cv4-p8m7-4r25](GHSA-6cv4-p8m7-4r25)
(Forge: ReDoS in forge.http response header and cookie
trimming)<br>[GHSA-4642-5mcj-2rqw](GHSA-4642-5mcj-2rqw)
(Forge: ASN.1 OID first arc truncation in
asn1.oidToDer)<br>[GHSA-h6cr-wjv9-3cpp](GHSA-h6cr-wjv9-3cpp)
(Forge: Denial of Service via infinite loop in BigInteger.modInverse()
with negative input (incomplete fix of
CVE-2026-33891))<br>[GHSA-4487-j8r4-4g2f](GHSA-4487-j8r4-4g2f)
(Forge: verifyCertificateChain() removes trusted CA certificates with
the same subject from the CA
store)<br>[GHSA-9wg5-mj3p-v49q](GHSA-9wg5-mj3p-v49q)
(Forge: Certificate signature verified with the issuer's RSA signature
scheme)<br>[GHSA-2vgq-wchc-25w7](GHSA-2vgq-wchc-25w7)
(Forge: Incomplete PKCS#7 padding validation in AES/DES CBC and ECB
decryption)<br>[GHSA-6889-vf6x-f3g5](GHSA-6889-vf6x-f3g5)
(Forge: Ed25519 signature verification accepts small-order public
keys)<br>[GHSA-w73w-hhm4-q25p](GHSA-w73w-hhm4-q25p)
(Forge: RSA multi-prime private keys are read as two-prime keys, and
signatures leak a factor of the modulus) | 1.4: security fixes in
ASN.1/PKCS parsing and signature verification |
| `ws` | 8.21.0 | 8.23.1 | High |
[GHSA-37g9-w4hg-h9qr](GHSA-37g9-w4hg-h9qr)
(ws: Memory exhaustion DoS via unbounded automatic pong responses) |
Caps queued automatic pong replies and rejects malformed handshake
values |
| `glob` | 10.5.0 | 14.0.7 | Moderate |
[GHSA-3g3m-2fjr-6pw4](GHSA-3g3m-2fjr-6pw4)
(Glob: AbortSignal cancellation bypass allows post-timeout filesystem
traversal) | Through the `rimraf` override (`rimraf` 6.1.4 uses `glob`
14); `rimraf` isn't loaded at runtime |
| `minimatch` | 9.0.9 | 11.0.10 | Moderate |
[GHSA-g3hv-75wg-m249](GHSA-g3hv-75wg-m249)
(minimatch has potential denial of service via globparts
amplification)<br>[GHSA-c859-jr93-m5j4](GHSA-c859-jr93-m5j4)
(minimatch: minimatch.escape() output matches more or less than the
literal input) | Through the `rimraf` override (`glob` 14 uses
`minimatch` 11); `rimraf` isn't loaded at runtime |
| `protobufjs` | 7.6.4 | 7.6.6 | Moderate |
[GHSA-j3f2-48v5-ccww](GHSA-j3f2-48v5-ccww)
(protobufjs: Denial of Service via infinite loop in .proto option
parsing) | Patch releases backporting 8.x parsing fixes (length-prefix
and string-escape checks) |
| `qs` | 6.15.2 | 6.16.2 | Moderate |
[GHSA-x5fp-wj9c-mxmx](GHSA-x5fp-wj9c-mxmx)
(qs array-limit bypass via bracket-key comma
parsing)<br>[GHSA-4mjr-xmp4-gh2g](GHSA-4mjr-xmp4-gh2g)
(qs: Denial of Service via Attacker Controlled
isBuffer)<br>[GHSA-6pq8-jhm2-2vcw](GHSA-6pq8-jhm2-2vcw)
(qs.stringify with arrayFormat 'comma' throws an uncaught TypeError
(DoS)) | `express` 4.22.2 → 4.22.3 (in range) allows 6.16; parse and
`stringify` fixes (array limits, `isBuffer`, comma format), new optional
`stringify` `depth` |
| `uuid` | 9.0.1, 10.0.0 | 11.1.1 | Moderate |
[GHSA-w5hq-g745-h8pq](GHSA-w5hq-g745-h8pq)
(uuid: Missing buffer bounds check in v3/v5/v6 when buf is provided) |
Through a new `uuid: ^11.1.1` override; its dependents only call `v4()`
through `require("uuid")`, which 11 still provides |

### Not fixed

All remaining advisories come from `genkit`'s OpenTelemetry 1.25 SDK and
`zod` 3, which even the latest `genkit` (1.44) still requires.

| Package | Version | Severity | Why |
|---|---|---|---|
| `@opentelemetry/propagator-jaeger` | 1.25.1 | High | Fixed in 2.9.0;
`@opentelemetry/sdk-trace-node` 1.25.1 pins `1.25.1` and `genkit` 1.44
(latest) still uses the OpenTelemetry 1.25 SDK; 2.9 needs
`@opentelemetry/core` 2, so an override would mix 1.x and 2.x SDK
packages |
| `zod` | 3.25.76 | High | Fixed only in 4.6.6; `@genkit-ai/core` 1.44
(latest) still requires `zod` ^3.23.8; override to 4 unsafe: genkit
builds schemas with the zod 3 API, and the extension uses genkit's `z` |
| `@opentelemetry/core` | 1.25.1, 1.30.1 | Moderate | Fixed in 2.8.0;
`genkit` 1.44 (latest) and `@genkit-ai/google-cloud` 1.44 pin `~1.25.0`;
2.x is a breaking major for the 1.x SDK packages genkit uses |
| `@opentelemetry/instrumentation-cassandra-driver` | 0.40.0 | Moderate
| Fixed in 0.66.0; `@opentelemetry/auto-instrumentations-node` ^0.49.1
(from `@genkit-ai/google-cloud` 1.44, latest) pins the old line; the
fixed releases need `@opentelemetry/core` 2, so an override would mix
them into genkit's 1.x SDK |
| `@opentelemetry/instrumentation-knex` | 0.39.0 | Moderate | Fixed in
0.65.0; `@opentelemetry/auto-instrumentations-node` ^0.49.1 (from
`@genkit-ai/google-cloud` 1.44, latest) pins the old line; the fixed
releases need `@opentelemetry/core` 2, so an override would mix them
into genkit's 1.x SDK |
| `@opentelemetry/instrumentation-mongoose` | 0.41.0 | Moderate | Fixed
in 0.67.0; `@opentelemetry/auto-instrumentations-node` ^0.49.1 (from
`@genkit-ai/google-cloud` 1.44, latest) pins the old line; the fixed
releases need `@opentelemetry/core` 2, so an override would mix them
into genkit's 1.x SDK |
| `@opentelemetry/instrumentation-mysql` | 0.40.0 | Moderate | Fixed in
0.67.0; `@opentelemetry/auto-instrumentations-node` ^0.49.1 (from
`@genkit-ai/google-cloud` 1.44, latest) pins the old line; the fixed
releases need `@opentelemetry/core` 2, so an override would mix them
into genkit's 1.x SDK |
| `@opentelemetry/instrumentation-mysql2` | 0.40.0 | Moderate | Fixed in
0.67.0; `@opentelemetry/auto-instrumentations-node` ^0.49.1 (from
`@genkit-ai/google-cloud` 1.44, latest) pins the old line; the fixed
releases need `@opentelemetry/core` 2, so an override would mix them
into genkit's 1.x SDK |
| `@opentelemetry/instrumentation-pg` | 0.43.0 | Moderate | Fixed in
0.73.0; `@opentelemetry/auto-instrumentations-node` ^0.49.1 (from
`@genkit-ai/google-cloud` 1.44, latest) pins the old line; the fixed
releases need `@opentelemetry/core` 2, so an override would mix them
into genkit's 1.x SDK |
| `@opentelemetry/instrumentation-tedious` | 0.13.0 | Moderate | Fixed
in 0.40.0; `@opentelemetry/auto-instrumentations-node` ^0.49.1 (from
`@genkit-ai/google-cloud` 1.44, latest) pins the old line; the fixed
releases need `@opentelemetry/core` 2, so an override would mix them
into genkit's 1.x SDK |

### Other version changes

| Package | Change | Why |
|---|---|---|
| `@isaacs/nonrecursive-glob-match` | added 1.1.0 | Pulled in by `glob`
14 (`rimraf` override) |
| `@nodable/entities` | 2.2.0 → 3.1.0 | Pulled up by the
`fast-xml-parser` update |
| `balanced-match` (under `rimraf`) | added 4.0.4 | Pulled in by
`brace-expansion` 5 (`rimraf` override) |
| `brace-expansion` (dev-only copy) | 1.1.13 → 1.1.22 | In-range update;
not installed in production |
| `express` | 4.22.2 → 4.22.3 | In-range update so `qs` can move to
6.16; also lets `QUERY` requests use `req.fresh` |
| `fast-xml-builder` | 1.2.0 → 1.3.2 | Pulled up by the
`fast-xml-parser` update |
| `is-unsafe` | 1.0.1 → 2.0.3 | Pulled up by the `fast-xml-parser`
update |
| `object-inspect` | 1.13.4 → 1.14.0 | Pulled up by the `side-channel`,
`side-channel-list` update |
| `path-expression-matcher` | 1.6.0 → 1.6.2 | Pulled up by the
`fast-xml-builder`, `fast-xml-parser` update |
| `path-scurry` | 1.11.1 → 3.0.3 | Pulled up by `glob` 14 (`rimraf`
override) |
| `lru-cache` (under `path-scurry`) | 10.4.3 → 11.5.4 | Pulled up by the
`path-scurry` update |
| `rimraf` | 5.0.10 → 6.1.4 | New `rimraf: ^6.1.4` override (see Notes)
|
| `side-channel` | 1.1.0 → 1.1.1 | Pulled up by the `qs` update |
| `side-channel-list` | 1.0.0 → 1.0.1 | Pulled up by the `side-channel`
update |
| `strnum` | 2.4.1 → 2.5.1 | Pulled up by the `fast-xml-parser` update |
| `websocket-extensions` | 0.1.4 → 0.3.0 | Pulled up by the
`websocket-driver` update |
| `xml-naming` | 0.1.0 → 0.3.1 | Pulled up by the `fast-xml-builder`,
`fast-xml-parser` update |
| `@isaacs/cliui` (and its 6 nested packages), `@pkgjs/parseargs`,
`eastasianwidth`, `foreground-child`, `signal-exit` 4.1.0 (under
`foreground-child`), `jackspeak`, `string-width-cjs`, `strip-ansi-cjs`,
`wrap-ansi-cjs` | removed | Only `glob` 10's command-line tool needed
them |

## Notes

- Updated with in-range `npm update` and two `package.json` overrides,
not `npm audit fix` (on `firestore-bigquery-export` it downgraded
`google-gax` 4.6.1 → 4.0.4 and pulled in a critical `protobufjs`). No
direct dependency changes version and no source changes.
- `uuid: ^11.1.1` override: `firebase-admin`, `gaxios` 6, `google-gax`
4, `teeny-request` and `googleapis-common` only call `uuid.v4()` through
`require("uuid")`, which 11 still provides; `genkit` lists `uuid` but
uses `crypto.randomUUID()`. `firebase-admin` 13/14 and
`@google-cloud/translate` 10 would drop their own `uuid` 9/10, but
`genkit` 1.44 still requires `uuid` ^10 and pulls in `google-gax` 4 and
`googleapis-common` 7 through `@genkit-ai/google-cloud`, so the override
is needed anyway; those majors (which also need `firebase-functions` 4 →
6+ and a `firebase-functions/v1` import) would fix no further advisory.
- `rimraf: ^6.1.4` override: only `google-gax` 5.0.7 and `gaxios` 7.1.3
depend on it (both under `@google-cloud/modelarmor`, from `genkit`'s
optional `@genkit-ai/firebase`), and neither one's built code loads it.
No release in their ranges drops it: every `google-gax` 5.x depends on
`rimraf` ^5, and `gcp-metadata` 8.1.3/8.1.4 pin `gaxios` 7.1.3. `rimraf`
6.1.4 and its new dependencies support Node 20 and 22+ (the extension
runs on `nodejs22`).
- Dev-only advisories (`baseline-browser-mapping`, `browserslist`,
`js-yaml`, `ts-deepmerge`) are left alone: not installed when the
extension is deployed.
- Version and CHANGELOG left for the next release.

## Testing

| Check | Result |
|---|---|
| Build | ✅ |
| Unit tests | ✅ 4 / 4 |
| Production `npm audit` | ✅ 84 → 54, no new advisories, no downgrades |
| Live smoke test | ✅ PASS |

### Smoke test

Deployed the extension's functions before (`490b13b`) and after
(`245caa1`) the change side by side on a test project, with both the
Cloud Translation and the Gemini (Vertex AI) providers, and ran the same
24 checks on both. The checks cover every function, the code that uses
the updated packages (including both overrides), the risks from their
changelogs, and cold-start time and memory.

| Area | Checks | Same | Differs | Not tested |
|---|---|---|---|---|
| Deploy and runtime settings | 3 | 1 | 2 | 0 |
| Functions (normal and error input) | 2 | 2 | 0 | 0 |
| Updated packages (code paths and changelog risks) | 17 | 14 | 3 | 0 |
| Events | 1 | 1 | 0 | 0 |
| Logs and severity | 1 | 1 | 0 | 0 |
| **Total** | **24** | **19** | **5** | **0** |

**Differences**

| ID | Check | Before | After | Verdict |
|---|---|---|---|---|
| a | Install warnings during deploy | `glob@10.5.0` and `uuid@10.0.0`
×2 deprecation warnings, 514 packages | No deprecation warnings, 490
packages | Improvement |
| d3 | Instance starts during the test window | 19 | 21 | Flaky
(autoscaling) |
| d8 | Translation output for input containing `{{name}}` (es) |
`{{name}}` | `{{nombre}}` on the first run, `{{name}}` on the re-run |
Flaky (the Translation API returns both forms for the same request) |
| d9 | Gemini output wording | e.g. "Vielen Dank" | e.g. "Danke schön" |
Flaky (model variation; same schema, no errors) |
| g | Cold start and memory | First cold burst median 1693 ms; Gemini
memory p50 126 MB | First cold burst median 4750 ms; Gemini memory p50
139 MB | Flaky: re-run burst median 884 ms before vs 726 ms after;
memory p99 equal (146 MB); local require time 203 vs 214 ms, heap after
GC 49.8 MB on both |
…ension lockfile (#3364)

The extension's `functions/package-lock.json` (version 0.3.7) pins 89
production advisories, which ship in every install built from it; this
moves 19 packages to patched releases (12 within the ranges the
extension already allows, the rest through overrides of `uuid`,
`@grpc/grpc-js`, `@opentelemetry/propagator-jaeger`, `@anthropic-ai/sdk`
and `rimraf`), fixing 35 advisories.

## Advisories (production `npm audit`)

| Severity | Before | After |
|---|---|---|
| Critical | 4 | 0 |
| High | 17 | 3 |
| Moderate | 68 | 51 |
| Low | 0 | 0 |
| **Total** | **89** | **54** |

## Dependency changes

### Fixed

| Package | Before | After | Severity | Advisory | What changed |
|---|---|---|---|---|---|
| `cross-spawn` | 6.0.6, 7.0.6 | 6.0.10, 7.1.2 | Critical |
[GHSA-ghv9-86vm-4v8m](GHSA-ghv9-86vm-4v8m)
(cross-spawn: Command injection on Windows when spawning batch files) |
Security fix only (Windows batch-file argument escaping) |
| `handlebars` | 4.7.9 | 4.7.10 | Critical |
[GHSA-8r5x-fm3f-whwj](GHSA-8r5x-fm3f-whwj)
(Handlebars: JavaScript Injection via AST Type Confusion in compile
(bypass of
CVE-2026-33937))<br>[GHSA-p8wg-vrv2-v86f](GHSA-p8wg-vrv2-v86f)
(Handlebars: JavaScript Injection via Own Property Check
Bypass)<br>[GHSA-xw65-4hp5-5hc7](GHSA-xw65-4hp5-5hc7)
(Handlebars: JavaScript Injection via Unsafe Inline Embedding of
Precompiled Templates) | Security fixes in template compile and runtime
|
| `proxy-addr` | 2.0.7 | 2.0.8 | Critical |
[GHSA-jqcg-44mw-7w3h](GHSA-jqcg-44mw-7w3h)
(proxy-addr vulnerable to IP spoofing via IPv4-mapped IPv6 trust subnet)
| Security fix only (IPv4-mapped IPv6 trust subnets) |
| `websocket-driver` | 0.7.4 | 0.8.3 | Critical |
[GHSA-xv26-6w52-cph6](GHSA-xv26-6w52-cph6)
(websocket-driver: Message corruption via abuse of protocol length
headers)<br>[GHSA-v36f-rjg3-3v46](GHSA-v36f-rjg3-3v46)
(websocket-driver: Message corruption and denial of service triggered by
crafted client
message)<br>[GHSA-c4gv-fww2-jp3r](GHSA-c4gv-fww2-jp3r)
(websocket-driver: Denial of service triggered by malformed
Sec-WebSocket-Key1
header)<br>[GHSA-9g4r-f5gq-qjrr](GHSA-9g4r-f5gq-qjrr)
(websocket-driver: Denial of service triggered by client sending a
single pong
frame)<br>[GHSA-7487-9gcw-9w8w](GHSA-7487-9gcw-9w8w)
(websocket-driver: Memory exhaustion triggered by buffering of
zero-length fragmented
frames)<br>[GHSA-v674-7268-hvqh](GHSA-v674-7268-hvqh)
(websocket-driver: Memory exhaustion triggered by buffering of data
received after socket is
closed)<br>[GHSA-mp7j-qc5w-4988](GHSA-mp7j-qc5w-4988)
(websocket-driver: Resource limit bypass via message compression) | 0.8:
old draft-75/76 protocols off by default, buffered data capped at
`maxLength`, no buffering after close; not loaded through
`firebase-admin`, whose Realtime Database client is a self-contained
bundle |
| `@fastify/busboy` | 3.1.1 | 3.2.6 | High |
[GHSA-xjh9-v7x6-24jw](GHSA-xjh9-v7x6-24jw)
(@fastify/busboy vulnerable to Denial of Service via oversized multipart
boundary)<br>[GHSA-x8mw-p69m-v3mx](GHSA-x8mw-p69m-v3mx)
(@fastify/busboy vulnerable to Denial of Service via prototype-named
multipart part
header)<br>[GHSA-gxm5-99cw-xjw9](GHSA-gxm5-99cw-xjw9)
(@fastify/busboy vulnerable to CRLF injection via multipart
Content-Disposition filename and name) | Security fixes plus multipart
parsing fixes (split CRLF terminators, epilogue after closing boundary,
urlencoded edge cases) |
| `@grpc/grpc-js` | 1.9.16, 1.14.4 | 1.14.7 | High |
[GHSA-m9gg-hp2v-232j](GHSA-m9gg-hp2v-232j)
(@grpc/grpc-js: In certain configurations, getAuthContext can return
unauthorized certificates as though they were
authorized)<br>[GHSA-f596-whhp-79r4](GHSA-f596-whhp-79r4)
(@grpc/grpc-js: The server transmits some error messages thrown by
method handlers to the client in status messages) | 1.14.4 copies
updated within range (security and retry fixes); the 1.9.16 copy pinned
by `@firebase/firestore` moves to 1.14.7 through an override |
| `@opentelemetry/propagator-jaeger` | 1.25.1 | 2.12.1 | High |
[GHSA-45rx-2jwx-cxfr](GHSA-45rx-2jwx-cxfr)
(OpenTelemetry JavaScript: Denial of service in `JaegerPropagator` via
unhandled exception on a malformed header) | Through an override; same
`JaegerPropagator` code apart from the fix (malformed headers are
skipped instead of throwing), now marked deprecated |
| `body-parser` | 1.20.5 | 1.20.9 | High |
[GHSA-27r3-jxmh-p828](GHSA-27r3-jxmh-p828)
(body-parser vulnerable to Denial of Service via trailing bytes after a
compressed request
body)<br>[GHSA-v422-hmwv-36x6](GHSA-v422-hmwv-36x6)
(body-parser vulnerable to denial of service when invalid limit value
silently disables size enforcement) | Security fixes only (1.20.x line)
|
| `brace-expansion` | 2.1.2 | 5.1.2 | High |
[GHSA-mh99-v99m-4gvg](GHSA-mh99-v99m-4gvg)
(brace-expansion: DoS via unbounded expansion length causing an
out-of-memory process
crash)<br>[GHSA-rgw5-rvv9-x895](GHSA-rgw5-rvv9-x895)
(brace-expansion: DoS via unbounded intermediate arrays, bypassing the
CVE-2026-14257
mitigation)<br>[GHSA-qhr7-859c-m2p7](GHSA-qhr7-859c-m2p7)
(brace-expansion: DoS via uncontrolled recursion on nested brace groups
causing stack
exhaustion)<br>[GHSA-6j4f-fj2g-mc7p](GHSA-6j4f-fj2g-mc7p)
(brace-expansion: DoS via uncontrolled recursion in parseCommaParts
causing stack
exhaustion)<br>[GHSA-q2hr-2g5m-vwhr](GHSA-q2hr-2g5m-vwhr)
(brace-expansion: Quadratic-time expansion of the `{a},b}` rewrite
causes CPU denial of service) | Pulled up by the `minimatch` update;
only reached through `rimraf`, which nothing loads at runtime |
| `fast-uri` | 3.1.4 | 3.1.9 | High |
[GHSA-7p8r-x3mc-p8w7](GHSA-7p8r-x3mc-p8w7)
(fast-uri vulnerable to host confusion via backslash authority
introducer)<br>[GHSA-5jgf-p345-68v8](GHSA-5jgf-p345-68v8)
(fast-uri vulnerable to host confusion via skipped IDN canonicalization
on scheme-relative
references)<br>[GHSA-f65p-4m7j-42xc](GHSA-f65p-4m7j-42xc)
(fast-uri vulnerable to server-side request forgery via malformed IPv6
normalization)<br>[GHSA-fph4-wmhf-6fwf](GHSA-fph4-wmhf-6fwf)
(fast-uri vulnerable to server-side request forgery via repeated
hostname
percent-decoding)<br>[GHSA-jqff-g426-hqxp](GHSA-jqff-g426-hqxp)
(fast-uri vulnerable to host confusion via percent-encoded scheme
normalization)<br>[GHSA-qw65-cvwx-89v3](GHSA-qw65-cvwx-89v3)
(fast-uri vulnerable to authority injection via an unvalidated port in
serialize)<br>[GHSA-hrr3-gc8f-f4qj](GHSA-hrr3-gc8f-f4qj)
(fast-uri vulnerable to inconsistent host case normalization via
percent-encoded
octets)<br>[GHSA-w74x-v6f9-j3xg](GHSA-w74x-v6f9-j3xg)
(fast-uri vulnerable to URI scheme spoofing via percent-encoded scheme
decoding)<br>[GHSA-wjr9-j795-jxcr](GHSA-wjr9-j795-jxcr)
(fast-uri vulnerable to host confusion via unchecked WHATWG host
canonicalization)<br>[GHSA-xhq7-xmqj-769h](GHSA-xhq7-xmqj-769h)
(fast-uri vulnerable to improper path equivalence in relative reference
normalization)<br>[GHSA-333x-w4r6-6crp](GHSA-333x-w4r6-6crp)
(fast-uri vulnerable to scheme injection via an unescaped first-segment
colon in suffix references) | Security fixes in URI parsing and
normalization |
| `fast-xml-parser` | 5.9.3 | 5.12.1 | High |
[GHSA-8r6m-32jq-jx6q](GHSA-8r6m-32jq-jx6q)
(fast-xml-parser: Repeated DOCTYPE declarations reset entity expansion
limits)<br>[GHSA-7cfw-w2rf-f3jc](GHSA-7cfw-w2rf-f3jc)
(fast-xml-parser: Quadratic-time (ReDoS-class) denial of service in
XMLValidator attribute scanner, default
options)<br>[GHSA-474x-hrwr-fgx4](GHSA-474x-hrwr-fgx4)
(fast-xml-parser: Quadratic CPU consumption scanning unterminated
stop-node tags) | Minor releases with parser and validator performance
fixes, `Uint8Array` input decoded as UTF-8, and the stop-node scanning
fix |
| `sharp` | 0.35.3 | 0.35.6 | High |
[GHSA-rgj7-g3m4-5g8c](GHSA-rgj7-g3m4-5g8c)
(sharp: Vulnerabilities in libheif: GHSA-g89c-p67h-r497 and
GHSA-2jg2-4ch7-h545)<br>[GHSA-wq5f-xc86-pv6w](GHSA-wq5f-xc86-pv6w)
(sharp : Vulnerability in librsvg dependency CVE-2026-96889) | Patch
releases with libvips 8.18.8 memory-leak fixes, 16-bit ICC handling and
`sequentialRead` fix |
| `ws` | 8.21.0 | 8.23.1 | High |
[GHSA-37g9-w4hg-h9qr](GHSA-37g9-w4hg-h9qr)
(ws: Memory exhaustion DoS via unbounded automatic pong responses) |
Caps queued automatic pong replies and rejects malformed handshake
values |
| `@anthropic-ai/sdk` | 0.90.0 | 0.91.1 | Moderate |
[GHSA-p7fg-763f-g4gf](GHSA-p7fg-763f-g4gf)
(Claude SDK for TypeScript has Insecure Default File Permissions in
Local Filesystem Memory Tool) | Through an override; 0.91 adds the
Memory beta API and restricts memory file permissions, no breaking
changes |
| `glob` | 10.5.0 | 14.0.7 | Moderate |
[GHSA-3g3m-2fjr-6pw4](GHSA-3g3m-2fjr-6pw4)
(Glob: AbortSignal cancellation bypass allows post-timeout filesystem
traversal) | Pulled up by the `rimraf` override; only reached through
`rimraf`, which nothing loads at runtime |
| `minimatch` | 9.0.9 | 11.0.10 | Moderate |
[GHSA-g3hv-75wg-m249](GHSA-g3hv-75wg-m249)
(minimatch has potential denial of service via globparts
amplification)<br>[GHSA-c859-jr93-m5j4](GHSA-c859-jr93-m5j4)
(minimatch: minimatch.escape() output matches more or less than the
literal input) | Pulled up by the `glob` update; only reached through
`rimraf` |
| `protobufjs` | 7.6.4 | 7.6.6 | Moderate |
[GHSA-j3f2-48v5-ccww](GHSA-j3f2-48v5-ccww)
(protobufjs: Denial of Service via infinite loop in .proto option
parsing) | Patch releases backporting 8.x parsing fixes (length-prefix
and string-escape checks) |
| `qs` | 6.15.2 | 6.16.2 | Moderate |
[GHSA-x5fp-wj9c-mxmx](GHSA-x5fp-wj9c-mxmx)
(qs array-limit bypass via bracket-key comma
parsing)<br>[GHSA-4mjr-xmp4-gh2g](GHSA-4mjr-xmp4-gh2g)
(qs: Denial of Service via Attacker Controlled
isBuffer)<br>[GHSA-6pq8-jhm2-2vcw](GHSA-6pq8-jhm2-2vcw)
(qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError
on array elements carrying a non-callable own toString (DoS)) | Security
fixes only (array-limit, `isBuffer` and `stringify` DoS); 6.16 allowed
by the in-range `express` 4.22.3 update |
| `uuid` | 9.0.1, 10.0.0 | 11.1.1 | Moderate |
[GHSA-w5hq-g745-h8pq](GHSA-w5hq-g745-h8pq)
(uuid: Missing buffer bounds check in v3/v5/v6 when buf is provided) |
Through an override; its dependents only call `uuid.v4()` through
`require("uuid")`, which 11 still provides |

### Not fixed

| Package | Version | Severity | Why |
|---|---|---|---|
| `zod` | 3.25.76 | High | Fixed only in 4.6.6. `genkit` 1.44 (latest)
and `openai` 4 require `zod` ^3, and genkit builds its schemas with the
zod 3 API (`zod-to-json-schema` 3), so an override to 4 is unsafe. Also
counted against `@genkit-ai/core` and `openai` (the other 2 highs) |
| `@opentelemetry/core` | 1.25.1, 1.30.1 | Moderate | Fixed only in
2.8.0. `genkit` and `@genkit-ai/google-cloud` 1.44 (latest) pin
`~1.25.0` and the OpenTelemetry SDK 1.x; an override is unsafe because
SDK 1.x imports `getEnv`, `TracesSamplerValues` and other exports that
core 2 removed. Most of the remaining moderates are OpenTelemetry 1.x
and `@genkit-ai/*` packages flagged only through it |
| `@opentelemetry/instrumentation-cassandra-driver`, `-knex`,
`-mongoose`, `-mysql`, `-mysql2`, `-pg`, `-tedious` | 0.40.0, 0.39.0,
0.41.0, 0.40.0, 0.40.0, 0.43.0, 0.13.0 | Moderate | Fixed only in
releases built on OpenTelemetry SDK 2 (0.65.0–0.73.0, 0.40.0 for
`-tedious`). They come from `@opentelemetry/auto-instrumentations-node`
0.49.2, which `@genkit-ai/google-cloud` 1.44 (latest) pins with
`^0.49.1`; overriding them or `auto-instrumentations-node` would load
SDK 2 instrumentations into genkit's SDK 1 setup. Only loaded when
`ENABLE_FIREBASE_MONITORING=true`, which the extension doesn't set |

### Other version changes

| Package | Change | Why |
|---|---|---|
| `@emnapi/runtime` | 1.11.2 → 1.11.3 | Pulled up by the
`@img/sharp-wasm32` update |
| `@img/sharp-darwin-arm64` | 0.35.3 → 0.35.6 | Pulled up by the `sharp`
update |
| `@img/sharp-darwin-x64` | 0.35.3 → 0.35.6 | Pulled up by the `sharp`
update |
| `@img/sharp-freebsd-wasm32` | 0.35.3 → 0.35.6 | Pulled up by the
`sharp` update |
| `@img/sharp-libvips-darwin-arm64` | 1.3.2 → 1.3.5 | Pulled up by the
`@img/sharp-darwin-arm64`, `sharp` update |
| `@img/sharp-libvips-darwin-x64` | 1.3.2 → 1.3.5 | Pulled up by the
`@img/sharp-darwin-x64`, `sharp` update |
| `@img/sharp-libvips-linux-arm` | 1.3.2 → 1.3.5 | Pulled up by the
`@img/sharp-linux-arm`, `sharp` update |
| `@img/sharp-libvips-linux-arm64` | 1.3.2 → 1.3.5 | Pulled up by the
`@img/sharp-linux-arm64`, `sharp` update |
| `@img/sharp-libvips-linux-ppc64` | 1.3.2 → 1.3.5 | Pulled up by the
`@img/sharp-linux-ppc64`, `sharp` update |
| `@img/sharp-libvips-linux-riscv64` | 1.3.2 → 1.3.5 | Pulled up by the
`@img/sharp-linux-riscv64`, `sharp` update |
| `@img/sharp-libvips-linux-s390x` | 1.3.2 → 1.3.5 | Pulled up by the
`@img/sharp-linux-s390x`, `sharp` update |
| `@img/sharp-libvips-linux-x64` | 1.3.2 → 1.3.5 | Pulled up by the
`@img/sharp-linux-x64`, `sharp` update |
| `@img/sharp-libvips-linuxmusl-arm64` | 1.3.2 → 1.3.5 | Pulled up by
the `@img/sharp-linuxmusl-arm64`, `sharp` update |
| `@img/sharp-libvips-linuxmusl-x64` | 1.3.2 → 1.3.5 | Pulled up by the
`@img/sharp-linuxmusl-x64`, `sharp` update |
| `@img/sharp-linux-arm` | 0.35.3 → 0.35.6 | Pulled up by the `sharp`
update |
| `@img/sharp-linux-arm64` | 0.35.3 → 0.35.6 | Pulled up by the `sharp`
update |
| `@img/sharp-linux-ppc64` | 0.35.3 → 0.35.6 | Pulled up by the `sharp`
update |
| `@img/sharp-linux-riscv64` | 0.35.3 → 0.35.6 | Pulled up by the
`sharp` update |
| `@img/sharp-linux-s390x` | 0.35.3 → 0.35.6 | Pulled up by the `sharp`
update |
| `@img/sharp-linux-x64` | 0.35.3 → 0.35.6 | Pulled up by the `sharp`
update |
| `@img/sharp-linuxmusl-arm64` | 0.35.3 → 0.35.6 | Pulled up by the
`sharp` update |
| `@img/sharp-linuxmusl-x64` | 0.35.3 → 0.35.6 | Pulled up by the
`sharp` update |
| `@img/sharp-wasm32` | 0.35.3 → 0.35.6 | Pulled up by the
`@img/sharp-freebsd-wasm32`, `@img/sharp-webcontainers-wasm32` update |
| `@img/sharp-webcontainers-wasm32` | 0.35.3 → 0.35.6 | Pulled up by the
`sharp` update |
| `@img/sharp-win32-arm64` | 0.35.3 → 0.35.6 | Pulled up by the `sharp`
update |
| `@img/sharp-win32-ia32` | 0.35.3 → 0.35.6 | Pulled up by the `sharp`
update |
| `@img/sharp-win32-x64` | 0.35.3 → 0.35.6 | Pulled up by the `sharp`
update |
| `@isaacs/nonrecursive-glob-match` | added 1.1.0 | New dependency of
the updated `minimatch` |
| `@nodable/entities` | 2.2.0 → 3.1.0 | Pulled up by the
`fast-xml-parser` update |
| `@opentelemetry/core` | 1.25.1, 1.30.1 → 1.25.1, 1.30.1, 2.12.1 |
2.12.1 added, nested under the updated
`@opentelemetry/propagator-jaeger`; the 1.x copies are listed under Not
fixed |
| `@opentelemetry/semantic-conventions` | 1.25.1, 1.28.0, 1.43.0 →
1.25.1, 1.28.0, 1.43.0, 1.45.0 | 1.45.0 added, nested under
`@opentelemetry/core` 2.12.1 |
| `balanced-match` | 1.0.2 → 1.0.2, 4.0.4 | 4.0.4 added for
`brace-expansion` 5 |
| `brace-expansion` (dev-only copies under `jest`) | 1.1.13 → 1.1.22 |
Updated within range |
| `express` | 4.22.2 → 4.22.3 | Updated within its range; allows `qs`
6.16 |
| `fast-xml-builder` | 1.2.0 → 1.3.2 | Pulled up by the
`fast-xml-parser` update |
| `is-unsafe` | 1.0.1 → 2.0.3 | Pulled up by the `fast-xml-parser`
update |
| `lru-cache` | 5.1.1, 6.0.0, 10.4.3 → 5.1.1, 6.0.0, 11.5.4 | Pulled up
by the `path-scurry` update |
| `object-inspect` | 1.13.4 → 1.14.0 | Pulled up by the `side-channel`,
`side-channel-list` update |
| `path-expression-matcher` | 1.5.0 → 1.6.2 | Pulled up by the
`fast-xml-builder`, `fast-xml-parser` update |
| `path-scurry` | 1.11.1 → 3.0.3 | Pulled up by the `glob` update |
| `rimraf` | 5.0.10 → 6.1.4 | Through an override (see Notes) |
| `semver` | 7.8.5 → 7.8.6 | Pulled up by the `cross-spawn`, `sharp`
update |
| `side-channel` | 1.1.0 → 1.1.1 | Pulled up by the `qs` update |
| `side-channel-list` | 1.0.0 → 1.0.1 | Pulled up by the `side-channel`
update |
| `strnum` | 2.4.1 → 2.5.1 | Pulled up by the `fast-xml-parser` update |
| `websocket-extensions` | 0.1.4 → 0.3.0 | Pulled up by the
`websocket-driver` update |
| `xml-naming` | 0.1.0 → 0.3.1 | Pulled up by the `fast-xml-builder`,
`fast-xml-parser` update |
| `@isaacs/cliui` 8.0.2, `@pkgjs/parseargs` 0.11.0, `ansi-regex` 6.2.2,
`ansi-styles` 6.2.3, `eastasianwidth` 0.2.0, `emoji-regex` 9.2.2,
`foreground-child` 3.3.1, `jackspeak` 3.4.3, `signal-exit` 4.1.0,
`string-width` 5.1.2, `string-width-cjs` 4.2.3, `strip-ansi` 7.2.0,
`strip-ansi-cjs` 6.0.1, `wrap-ansi` 8.1.0, `wrap-ansi-cjs` 7.0.0 |
removed | Only needed by `glob` 10; gone with the `glob` update |

## Notes

- Updated with in-range `npm update` plus five `overrides` in
`package.json`, not `npm audit fix` (on `firestore-bigquery-export` it
downgraded `google-gax` 4.6.1 → 4.0.4 and pulled in a critical
`protobufjs`). No direct dependency changes version: the latest
`genkit`, `@genkit-ai/vertexai`, `@genkit-ai/google-cloud` (1.44) and
`firebase` (13) releases still pin the same vulnerable ranges, so parent
updates don't help.
- Overrides, each checked against how its dependents use the package
(all new versions support the `nodejs22` runtime):
- `uuid: ^11.1.1`: `gaxios`, `google-gax`, `googleapis-common`,
`teeny-request` and `@google-cloud/bigquery` only call `uuid.v4()`
through `require("uuid")`; `genkit` lists `uuid` but never imports it.
- `@firebase/firestore` → `@grpc/grpc-js: ^1.14.7`:
`@firebase/firestore` pins `~1.9.0` even in its latest release and only
calls `credentials.createSsl`/`createInsecure`, `Metadata` and
`loadPackageDefinition`, unchanged across 1.x. The `firebase` client SDK
is a devDependency, in the production tree only as an optional peer of
`@genkit-ai/firebase`.
- `@opentelemetry/sdk-trace-node` → `@opentelemetry/propagator-jaeger:
^2.9.0`: `sdk-trace-node` only calls `new JaegerPropagator()` when
`OTEL_PROPAGATORS` includes `jaeger`; the class is the same code apart
from the fix. Its own `@opentelemetry/core` 2.12.1 stays nested.
- `@anthropic-ai/sdk: ^0.91.1`: `@genkit-ai/vertexai` (still `^0.90.0`
in 1.44) only uses it through `@anthropic-ai/vertex-sdk` (allows `<1`)
for `messages.create`/`stream` in its Model Garden code, which the
extension doesn't import. 0.91 adds features and the fix only.
- `rimraf: ^6.1.4` (clears `glob`, `minimatch` and `brace-expansion`):
`google-gax` 5 and `gaxios` 7.1.3 list `rimraf` 5 but never load it; 6
keeps the same API and only drops Node < 20.
- Dev-only advisories (`baseline-browser-mapping`, `browserslist`,
`image-size`, `js-yaml`, `ts-deepmerge` via `firebase-functions-test`)
are left alone: not installed when the extension is deployed.
- Version and CHANGELOG left for the next release.
- Related: #3247 (bumps `sharp` to ^0.35.5 and restricts libvips
loaders)

## Testing

| Check | Result |
|---|---|
| Build | ✅ |
| Unit tests | ➖ 57 / 68 pass (7 skipped); the same 4 e2e tests fail
before the change because they need the Storage emulator |
| Production `npm audit` | ✅ 89 → 54, no new advisories, no downgrades |
| Live smoke test | ✅ PASS |

### Smoke test

Deployed the extension's functions before (`490b13b`) and after
(`d7c1510`) the change side by side on a test project, each installed
with `npm ci` from its own lockfile, and ran the same 13 checks on both.
The checks covered the function under five param sets (defaults, every
format conversion, odd output/resize options, both content-filter
modes), the code that uses the updated and overridden packages,
cold-start time and memory, and the risks from their changelogs.

| Area | Checks | Same | Differs | Not tested |
|---|---|---|---|---|
| Deploy and runtime settings | 2 | 2 | 0 | 0 |
| Functions (normal and error input) | 1 | 0 | 1 | 0 |
| Updated packages (code paths and changelog risks) | 8 | 4 | 4 | 0 |
| Events | 1 | 1 | 0 | 0 |
| Logs and severity | 1 | 0 | 1 | 0 |
| **Total** | **13** | **7** | **6** | **0** |

**Differences**

| ID | Check | Before | After | Verdict |
|---|---|---|---|---|
| D1 | `OUTPUT_OPTIONS` with a `null` value (e.g. `{"jpeg":null}`) |
Resize fails with a TypeError (plus the related error logs and events) |
Resizes normally | Improvement |
| D2 | 16-bit Display P3 PNG | Colours not converted to sRGB (mean error
~26) | Converted to sRGB (mean error ~1) | Improvement |
| D3 | CMYK JPEG | Slightly different pixels | Slightly different pixels
| Neutral (both match a LittleCMS reference) |
| D4 | PNG `palette` with `colours: 7` | 4 colours | 16 colours, files
35–73% larger | Behaviour change (`sharp` 0.35.4 rounds palette bit
depth up), not a regression |
| D6 | Custom-prompt content filter on a harmless image | Blocked 1 / 17
| Blocked 4 / 17 | Flaky (both sides): every block is Gemini hitting the
extension's existing 100-token output limit, which truncates the JSON
answer; the request is byte-identical on both sides |
| D7 | Corrupt JPEG error text | libvips warning repeated a varying
number of times | Same, varying | Flaky (both sides) |
| D8 | Malformed `uber-trace-id` header (Jaeger propagator, local check)
| Throws `URIError` | Header skipped | Improvement |
| D9 | Modules loaded at cold start | — | +48 (second
`@opentelemetry/core` copy), about +1 MB | Expected; cold-start time and
peak memory the same within noise |
…nsion lockfile (#3360)

The extension's `functions/package-lock.json` (version 0.2.11) pins 23
production advisories, which ship in every install built from it; this
moves 15 packages to patched releases (12 within existing ranges,
`nodemailer` 9 → 10, `zod` 3 → 4, `uuid` through an override), fixing
all 23 advisories.

## Advisories (production `npm audit`)

| Severity | Before | After |
|---|---|---|
| Critical | 3 | 0 |
| High | 8 | 0 |
| Moderate | 12 | 0 |
| Low | 0 | 0 |
| **Total** | **23** | **0** |

## Dependency changes

### Fixed

| Package | Before | After | Severity | Advisory | What changed |
|---|---|---|---|---|---|
| `handlebars` | 4.7.9 | 4.7.10 | Critical |
[GHSA-8r5x-fm3f-whwj](GHSA-8r5x-fm3f-whwj)
(Handlebars: JavaScript Injection via AST Type Confusion in compile
(bypass of
CVE-2026-33937))<br>[GHSA-p8wg-vrv2-v86f](GHSA-p8wg-vrv2-v86f)
(Handlebars: JavaScript Injection via Own Property Check
Bypass)<br>[GHSA-xw65-4hp5-5hc7](GHSA-xw65-4hp5-5hc7)
(Handlebars: JavaScript Injection via Unsafe Inline Embedding of
Precompiled Templates) | Security fixes in template compile and runtime
|
| `proxy-addr` | 2.0.7 | 2.0.8 | Critical |
[GHSA-jqcg-44mw-7w3h](GHSA-jqcg-44mw-7w3h)
(proxy-addr vulnerable to IP spoofing via IPv4-mapped IPv6 trust subnet)
| Security fix only (IPv4-mapped IPv6 trust subnets) |
| `websocket-driver` | 0.7.4 | 0.8.3 | Critical |
[GHSA-xv26-6w52-cph6](GHSA-xv26-6w52-cph6)
(websocket-driver: Message corruption via abuse of protocol length
headers)<br>[GHSA-v36f-rjg3-3v46](GHSA-v36f-rjg3-3v46)
(websocket-driver: Message corruption and denial of service triggered by
crafted client
message)<br>[GHSA-c4gv-fww2-jp3r](GHSA-c4gv-fww2-jp3r)
(websocket-driver: Denial of service triggered by malformed
Sec-WebSocket-Key1
header)<br>[GHSA-9g4r-f5gq-qjrr](GHSA-9g4r-f5gq-qjrr)
(websocket-driver: Denial of service triggered by client sending a
single pong
frame)<br>[GHSA-7487-9gcw-9w8w](GHSA-7487-9gcw-9w8w)
(websocket-driver: Memory exhaustion triggered by buffering of
zero-length fragmented
frames)<br>[GHSA-v674-7268-hvqh](GHSA-v674-7268-hvqh)
(websocket-driver: Memory exhaustion triggered by buffering of data
received after socket is
closed)<br>[GHSA-mp7j-qc5w-4988](GHSA-mp7j-qc5w-4988)
(websocket-driver: Resource limit bypass via message compression) | 0.8:
old draft-75/76 protocols off by default, buffered data capped at
`maxLength`, no buffering after close; not loaded through
`firebase-admin`, whose Realtime Database client is a self-contained
bundle |
| `@fastify/busboy` | 3.1.1 | 3.2.6 | High |
[GHSA-xjh9-v7x6-24jw](GHSA-xjh9-v7x6-24jw)
(@fastify/busboy vulnerable to Denial of Service via oversized multipart
boundary)<br>[GHSA-x8mw-p69m-v3mx](GHSA-x8mw-p69m-v3mx)
(@fastify/busboy vulnerable to Denial of Service via prototype-named
multipart part
header)<br>[GHSA-gxm5-99cw-xjw9](GHSA-gxm5-99cw-xjw9)
(@fastify/busboy vulnerable to CRLF injection via multipart
Content-Disposition filename and name) | Security fixes plus multipart
parsing fixes (split CRLF terminators, epilogue after closing boundary,
urlencoded edge cases) |
| `@grpc/grpc-js` | 1.14.4 | 1.14.7 | High |
[GHSA-m9gg-hp2v-232j](GHSA-m9gg-hp2v-232j)
(@grpc/grpc-js: In certain configurations, getAuthContext can return
unauthorized certificates as though they were
authorized)<br>[GHSA-f596-whhp-79r4](GHSA-f596-whhp-79r4)
(@grpc/grpc-js: The server transmits some error messages thrown by
method handlers to the client in status messages) | Security fixes plus
retry fixes (retries stop after cancel; retries that sometimes didn't
fire now do) |
| `axios` | 1.16.0 | 1.21.1 | High |
[GHSA-gcfj-64vw-6mp9](GHSA-gcfj-64vw-6mp9)
(Axios Node HTTP adapter can use an inherited proxy after interceptor
config
cloning)<br>[GHSA-mghh-pgcx-3jjj](GHSA-mghh-pgcx-3jjj)
(Axios: ReDoS (O(N²)) in shouldBypassProxy host normalization, reachable
via untrusted redirect
Location)<br>[GHSA-x97p-jq2g-jp4f](GHSA-x97p-jq2g-jp4f)
(Axios: Prototype Pollution Gadget in axios toFormData
Options)<br>[GHSA-3pq3-5fj3-cg6v](GHSA-3pq3-5fj3-cg6v)
(Axios: HTTP/2 adapter bypasses configured DNS lookup and proxy
controls)<br>[GHSA-542g-h47m-68v8](GHSA-542g-h47m-68v8)
(Axios: Denial of Service via Unhandled 'error' Event in HTTP/2
ClientHttp2Session
Initialization)<br>[GHSA-m8m8-qj5v-23w3](GHSA-m8m8-qj5v-23w3)
(Axios: Node HTTP adapter prototype-pollution gadget allows request
socket hijack via inherited
createConnection)<br>[GHSA-xj6q-8x83-jv6g](GHSA-xj6q-8x83-jv6g)
(Axios: Prototype pollution auth subfields can inject Basic
auth)<br>[GHSA-mmx7-hfxf-jppx](GHSA-mmx7-hfxf-jppx)
(Axios: Prototype pollution gadgets can alter axios request
construction)<br>[GHSA-pmv8-rq9r-6j72](GHSA-pmv8-rq9r-6j72)
(Axios: Deep formToJSON Key Recursion Can Cause Denial of
Service)<br>[GHSA-mwf2-3pr3-8698](GHSA-mwf2-3pr3-8698)
(Axios: HTTP/2 streamed uploads bypass
`maxBodyLength`)<br>[GHSA-7q8q-rj6j-mhjq](GHSA-7q8q-rj6j-mhjq)
(Axios: Nested axios option objects can consume polluted prototype
values)<br>[GHSA-jqh4-m9w3-8hp9](GHSA-jqh4-m9w3-8hp9)
(Axios: Fetch adapter `ReadableStream` uploads bypass
`maxBodyLength`)<br>[GHSA-f4gw-2p7v-4548](GHSA-f4gw-2p7v-4548)
(Axios: NO_PROXY bypass for 0.0.0.0 local addresses in
axios)<br>[GHSA-42h9-826w-cgv3](GHSA-42h9-826w-cgv3)
(Axios: Excessive recursion in formDataToJSON can cause denial of
service)<br>[GHSA-hcpx-6fm6-wx23](GHSA-hcpx-6fm6-wx23)
(Axios form serializer maxDepth bypass via {}
metatoken)<br>[GHSA-vh66-26gq-q6x8](GHSA-vh66-26gq-q6x8)
(Axios: Prototype pollution gadget in fetch adapter can alter outbound
requests)<br>[GHSA-9fr6-4gfg-395g](GHSA-9fr6-4gfg-395g)
(Axios: Prototype-Pollution Gadget in the Default Instance Allows
Inherited Object.prototype.method to Override HTTP
Method)<br>[GHSA-j8rh-479h-cp32](GHSA-j8rh-479h-cp32)
(Axios: Header Injection via Inherited headers After Minimal
Interceptor)<br>[GHSA-4hqw-qxg8-jxx2](GHSA-4hqw-qxg8-jxx2)
(Axios: Fetch Adapter Header Injection via Inherited FormData
getHeaders)<br>[GHSA-44g4-m2mj-wpvx](GHSA-44g4-m2mj-wpvx)
(Axios: CIDR-form NO_PROXY entries are ignored, causing proxy exclusion
bypass for internal IP ranges) | 1.14–1.21: prototype-pollution
hardening of option reads, header-defaults handling, consistent
multipart/proxy/params behaviour across adapters, HTTP/2 GOAWAY fix;
needs `follow-redirects` ≥1.16.2 |
| `body-parser` | 1.20.5 | 1.20.9 | High |
[GHSA-27r3-jxmh-p828](GHSA-27r3-jxmh-p828)
(body-parser vulnerable to Denial of Service via trailing bytes after a
compressed request
body)<br>[GHSA-v422-hmwv-36x6](GHSA-v422-hmwv-36x6)
(body-parser vulnerable to denial of service when invalid limit value
silently disables size enforcement) | Security fixes only (1.20.x line)
|
| `follow-redirects` | 1.16.0 | 1.16.3 | High |
[GHSA-q3jh-wrc6-jgq8](GHSA-q3jh-wrc6-jgq8)
(follow-redirects array-form headers bypass cross-origin credential
stripping)<br>[GHSA-8r9p-f939-6h3c](GHSA-8r9p-f939-6h3c)
(follow-redirects sensitiveHeaders regex escaping can expose credential
headers)<br>[GHSA-mrwp-f3q8-3g9p](GHSA-mrwp-f3q8-3g9p)
(follow-redirects: Cross-realm sensitiveHeaders arrays are discarded and
custom credentials can follow redirects) | Security fix: strips
credentials on cross-host redirects in more cases |
| `joi` | 17.13.4 | 17.13.9 | High |
[GHSA-6h2x-m376-mqjq](GHSA-6h2x-m376-mqjq)
(joi: Quadratic regular-expression backtracking in
`Joi.string().isoDate()`)<br>[GHSA-4528-x5fx-h6hg](GHSA-4528-x5fx-h6hg)
(joi: quadratic-time split in `string().email({ multiple: true })`
allows denial of
service)<br>[GHSA-wr44-6hxh-3jwq](GHSA-wr44-6hxh-3jwq)
(joi messages compilation allows prototype replacement through __proto__
error
codes)<br>[GHSA-6w3j-5fw6-r9vr](GHSA-6w3j-5fw6-r9vr)
(joi: Prototype pollution via a `__proto__` language key in custom
messages)<br>[GHSA-gg4h-3hg2-grpc](GHSA-gg4h-3hg2-grpc)
(joi: object().rename() with a template target can set the validated
object's prototype) | Patch releases with the security fix |
| `nodemailer` | 9.0.3 | 10.6.3 | High |
[GHSA-2x7j-588g-ccc2](GHSA-2x7j-588g-ccc2)
(Nodemailer: Quadratic (O(n²)) time complexity in addressparser allows
remote denial of service via a crafted address
list)<br>[GHSA-v53p-9fqp-m79j](GHSA-v53p-9fqp-m79j)
(Nodemailer: Quadratic backtracking in the addressparser free-text
fallback allows remote denial of
service)<br>[GHSA-8m3c-c648-2xjj](GHSA-8m3c-c648-2xjj)
(Nodemailer: resolveContent() on a MailMessage bypasses
disableFileAccess/disableUrlAccess when called with the legacy
signature)<br>[GHSA-wmmp-3585-3rmp](GHSA-wmmp-3585-3rmp)
(Nodemailer: IDN/Punycode domain allow-list bypass leads to email
delivery to an attacker-controlled
domain)<br>[GHSA-cc9r-2j5m-2m83](GHSA-cc9r-2j5m-2m83)
(Nodemailer: Recipient-domain validation bypass via RFC 5322 comment
mis-parsing leads to email delivery to an attacker-controlled
domain)<br>[GHSA-6vj9-mwq6-2f5v](GHSA-6vj9-mwq6-2f5v)
(Nodemailer: Process-global DNS cache reuses TLS `servername` across
transports, enabling cross-tenant SMTP credential
disclosure)<br>[GHSA-8vvx-rff5-p5rq](GHSA-8vvx-rff5-p5rq)
(Nodemailer: Nested structured recipient arrays bypass the parser depth
limit and cause stack exhaustion
DoS)<br>[GHSA-39m8-27wv-hr27](GHSA-39m8-27wv-hr27)
(Nodemailer: Quadratic (O(n^2)) DKIM header unfolding lets a large
folded header cause remote denial of service during
signing)<br>[GHSA-8c8m-p3m8-cjg8](GHSA-8c8m-p3m8-cjg8)
(Nodemailer: A nested comment ends early in addressparser, releasing the
rest of the comment as a
recipient)<br>[GHSA-m943-m63m-w62w](GHSA-m943-m63m-w62w)
(Nodemailer: A ";" inside a quoted string or comment ends an address
group early in addressparser, turning display text into a
recipient)<br>[GHSA-85x2-q946-cp5h](GHSA-85x2-q946-cp5h)
(Nodemailer: A ">" inside a quoted local part ends an angle-addr early
in addressparser, delivering to a domain the header does not
name)<br>[GHSA-4ffr-jq9g-5ffx](GHSA-4ffr-jq9g-5ffx)
(Nodemailer: Quadratic backtracking in SMTP AUTH mechanism detection
regexes allows pre-auth remote denial of
service)<br>[GHSA-g73g-hqqh-jr95](GHSA-g73g-hqqh-jr95)
(Nodemailer: RFC 5322 comment inside an angle-bracket address is never
stripped)<br>[GHSA-4g23-2xm8-66gc](GHSA-4g23-2xm8-66gc)
(Nodemailer: Quadratic (O(n^2)) SMTP client reply parsing lets a
malicious server or MITM cause a pre-auth remote denial of service) |
10.0: Node.js 20+ only and a TypeScript rewrite with bundled types;
10.x: address-parser, DKIM, SMTP-client and MIME hardening; the
extension's message shapes build byte-identical MIME output on 9.0.3 and
10.6.3 |
| `zod` | 3.25.76 | 4.6.7 | High |
[GHSA-mrhx-c7xc-m3w5](GHSA-mrhx-c7xc-m3w5)
(Zod can exhaust memory while validating oversized constrained
collections) | New major: schema and error-issue API changes, adapted in
`validation.ts` (see Notes); 4.6.6 caps the issues collected for failing
array elements |
| `fast-xml-parser` | 5.7.3 | 5.12.1 | Moderate |
[GHSA-7cfw-w2rf-f3jc](GHSA-7cfw-w2rf-f3jc)
(fast-xml-parser: Quadratic-time (ReDoS-class) denial of service in
XMLValidator attribute scanner, default
options)<br>[GHSA-474x-hrwr-fgx4](GHSA-474x-hrwr-fgx4)
(fast-xml-parser: Quadratic CPU consumption scanning unterminated
stop-node tags) | Minor releases with parser and validator performance
fixes, `Uint8Array` input decoded as UTF-8, and the stop-node scanning
fix |
| `protobufjs` | 7.6.4 | 7.6.6 | Moderate |
[GHSA-j3f2-48v5-ccww](GHSA-j3f2-48v5-ccww)
(protobufjs: Denial of Service via infinite loop in .proto option
parsing) | Patch releases backporting 8.x parsing fixes (length-prefix
and string-escape checks) |
| `qs` | 6.15.2 | 6.16.2 | Moderate |
[GHSA-x5fp-wj9c-mxmx](GHSA-x5fp-wj9c-mxmx)
(qs array-limit bypass via bracket-key comma
parsing)<br>[GHSA-4mjr-xmp4-gh2g](GHSA-4mjr-xmp4-gh2g)
(qs: Denial of Service via Attacker Controlled
isBuffer)<br>[GHSA-6pq8-jhm2-2vcw](GHSA-6pq8-jhm2-2vcw)
(qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError
on array elements carrying a non-callable own toString (DoS)) | Security
fixes only (array-limit and `stringify` DoS); 6.16 reached through
`express` 4.22.3 (`~6.16.0`) |
| `uuid` | 9.0.1 | 11.1.1 | Moderate |
[GHSA-w5hq-g745-h8pq](GHSA-w5hq-g745-h8pq)
(uuid: Missing buffer bounds check in v3/v5/v6 when buf is provided) |
Through a new `uuid: ^11.1.1` override; its dependents (`google-gax`,
`gaxios`, `teeny-request`) only call `uuid.v4()` through
`require("uuid")`, which 11 still provides |

### Other version changes

| Package | Change | Why |
|---|---|---|
| `@nodable/entities` | 2.1.0 → 3.1.0 | Pulled up by the
`fast-xml-parser` update |
| `agent-base` | 6.0.2, 7.1.3 (moved in tree) | Same version, moved in
the tree |
| `anynum` | — → 1.0.1 | New dependency of updated `strnum` |
| `debug` | 2.6.9, 4.4.1 → 2.6.9, 4.4.1, 4.4.3 | Pulled up by the
`agent-base`, `body-parser` update |
| `express` | 4.22.2 → 4.22.3 | Updated within its range; allows `qs`
6.16 |
| `fast-xml-builder` | 1.1.9 → 1.3.2 | Pulled up by the
`fast-xml-parser` update |
| `https-proxy-agent` | 5.0.1, 7.0.6 (moved in tree) | Same version,
moved in the tree |
| `ipv6-normalize` | 1.0.1 → removed | No longer used by updated
`smtp-server` |
| `is-unsafe` | — → 2.0.3 | New dependency of updated `fast-xml-parser`
|
| `ms` | 2.0.0, 2.1.3 (moved in tree) | Same version, moved in the tree
|
| `object-inspect` | 1.13.4 → 1.14.0 | Pulled up by the `side-channel`,
`side-channel-list` update |
| `path-expression-matcher` | 1.5.0 → 1.6.2 | Pulled up by the
`fast-xml-builder`, `fast-xml-parser` update |
| `side-channel` | 1.1.0 → 1.1.1 | Pulled up by the `qs` update |
| `side-channel-list` | 1.0.0 → 1.0.1 | Pulled up by the `side-channel`
update |
| `smtp-server` | 3.19.2 → 3.21.9 | Updated within its range; its exact
`nodemailer` pin moves from 9.0.3 to 10.6.3. Only the emulator tests'
local SMTP server uses it |
| `strnum` | 2.2.3 → 2.5.1 | Pulled up by the `fast-xml-parser` update |
| `websocket-extensions` | 0.1.4 → 0.3.0 | Pulled up by the
`websocket-driver` update |
| `xml-naming` | — → 0.3.1 | New dependency of updated
`fast-xml-builder`, `fast-xml-parser` |

## Notes

- Updated with in-range `npm update`, two direct-dependency major bumps
and one override, not `npm audit fix` (on `firestore-bigquery-export` it
downgraded `google-gax` 4.6.1 → 4.0.4 and pulled in a critical
`protobufjs`).
- `nodemailer` `^9.0.1` → `^10.6.3`: 10.0's only breaking change is
Node.js 20+ (the extension runs on `nodejs22`). Its bundled types
describe `createTransport`'s second argument as message defaults, which
has no `tls` field, so `src/helpers.ts` now casts that object to
`SendMailOptions`. This is a type-only change: both 9.0.3 and 10.6.3
pass that argument through as message defaults in the same way.
`smtp-server` is updated in range so it no longer pins `nodemailer`
9.0.3.
- `zod` `^3.24.4` → `^4.6.7`, with these changes in `src/validation.ts`:
`z.record()` now takes a key schema (`z.record(z.string(), …)`);
`.required({ subject: true })` becomes `.extend({ subject: z.string()
})`, so a missing subject still reports "must be a string" (zod 4's
`required()` reports "nonoptional"); record type errors, which zod 4
reports with `expected: "record"`, still map to "must be a map"; and
`invalid_string`/`validation` is now `invalid_format`/`format`. On 44
sample payloads the validation results and messages, and the parsed
attachments, are identical under zod 3.25.76 and 4.6.7.
- `uuid` override: the parent fix would be `firebase-admin` 14, which
needs `firebase-functions` 7 and is outside the peer range of
`firebase-functions-test` 3.5.0 (the latest release, which allows
`firebase-admin` up to 13). So `uuid` is overridden instead, as in
#3341.
- Dev-only advisories (`baseline-browser-mapping`, `brace-expansion`,
`browserslist`, `cross-spawn`, `js-yaml`, `shell-quote`, `ts-deepmerge`
through `firebase-functions-test`) are left alone: they aren't installed
when the extension is deployed.
- Version and CHANGELOG left for the next release.

## Testing

| Check | Result |
|---|---|
| Build | ✅ |
| Unit tests | ✅ 101 / 101 (all offline suites; the emulator suites
`e2e.test.ts` and `e2e/sendgrid.test.ts` are left to CI) |
| Production `npm audit` | ✅ 23 → 0, no new advisories, no downgrades |
| Live smoke test | ✅ PASS |

### Smoke test

Deployed the extension's functions before (`490b13b`) and after
(`91da3bb`) the change side by side on a test project and ran the same
28 checks on both, covering every function, the code that uses the
updated packages, and the risks from their changelogs.

| Area | Checks | Same | Differs | Not tested |
|---|---|---|---|---|
| Deploy and runtime settings | 2 | 2 | 0 | 0 |
| Functions (normal and error input) | 2 | 2 | 0 | 0 |
| Updated packages (code paths and changelog risks) | 22 | 18 | 4 | 0 |
| Events | 1 | 0 | 1 | 0 |
| Logs and severity | 1 | 0 | 1 | 0 |
| **Total** | **28** | **22** | **6** | **0** |

**Differences**

| ID | Check | Before | After | Verdict |
|---|---|---|---|---|
| d6 | Attachment part headers (`nodemailer` 10) | Windows-path filename
`name="C:\dir\win.txt"`; ASCII `message/rfc822` attachment `8bit` |
`name="C:\\dir\\win.txt"` (escaped as RFC 2045 requires); `7bit` |
Improvement (decoded attachments identical) |
| d12 | `delivery.error` for a template whose rendered `attachments` is
invalid (`zod` 4) |
`[{"code":"invalid_type","expected":"array","received":"string",…,"message":"Expected
array, received string"}]` |
`[{"expected":"array","code":"invalid_type",…,"message":"Invalid input:
expected array, received string"}]` | Same outcome (ERROR), new zod 4
error format |
| d16 | Template data with a `toHTML` key (`handlebars` 4.7.10) | ERROR
`TypeError: string.toHTML is not a function` | Sent, renders `[object
Object]` | Improvement (security fix) |
| d17 | Partial whose field isn't a string (`handlebars` 4.7.10) | ERROR
`You must pass a string or Handlebars AST to Handlebars.compile. You
passed 123` | ERROR `The partial numpartial could not be compiled:
partials must be strings or functions returning strings` | Same outcome
(ERROR), new wording |
| e | Events | `onError` for the d16 document; on the re-run, 3
documents `onError` | No `onError` for d16; on the re-run,
`onProcessing` for those 3 | Follows d16; re-run split Flaky (timing
race in unchanged code) |
| f | ERROR logs | d12, d16, d17 messages as above | d12, d17 messages
as above; none for d16 | Follows d12, d16, d17 |
…on lockfile (#3359)

The extension's `functions/package-lock.json` (version 0.2.17) pins 17
production advisories, which ship in every install built from it; this
moves 10 packages to patched releases (9 within the ranges the extension
already allows, `uuid` through an override), fixing all 17 advisories.

## Advisories (production `npm audit`)

| Severity | Before | After |
|---|---|---|
| Critical | 2 | 0 |
| High | 4 | 0 |
| Moderate | 11 | 0 |
| Low | 0 | 0 |
| **Total** | **17** | **0** |

## Dependency changes

### Fixed

| Package | Before | After | Severity | Advisory | What changed |
|---|---|---|---|---|---|
| `proxy-addr` | 2.0.7 | 2.0.8 | Critical |
[GHSA-jqcg-44mw-7w3h](GHSA-jqcg-44mw-7w3h)
(proxy-addr vulnerable to IP spoofing via IPv4-mapped IPv6 trust subnet)
| Security fix only (IPv4-mapped IPv6 trust subnets) |
| `websocket-driver` | 0.7.4 | 0.8.3 | Critical |
[GHSA-xv26-6w52-cph6](GHSA-xv26-6w52-cph6)
(websocket-driver: Message corruption via abuse of protocol length
headers)<br>[GHSA-v36f-rjg3-3v46](GHSA-v36f-rjg3-3v46)
(websocket-driver: Message corruption and denial of service triggered by
crafted client
message)<br>[GHSA-c4gv-fww2-jp3r](GHSA-c4gv-fww2-jp3r)
(websocket-driver: Denial of service triggered by malformed
Sec-WebSocket-Key1
header)<br>[GHSA-9g4r-f5gq-qjrr](GHSA-9g4r-f5gq-qjrr)
(websocket-driver: Denial of service triggered by client sending a
single pong
frame)<br>[GHSA-7487-9gcw-9w8w](GHSA-7487-9gcw-9w8w)
(websocket-driver: Memory exhaustion triggered by buffering of
zero-length fragmented
frames)<br>[GHSA-v674-7268-hvqh](GHSA-v674-7268-hvqh)
(websocket-driver: Memory exhaustion triggered by buffering of data
received after socket is
closed)<br>[GHSA-mp7j-qc5w-4988](GHSA-mp7j-qc5w-4988)
(websocket-driver: Resource limit bypass via message compression) | 0.8:
old draft-75/76 protocols off by default, buffered data capped at
`maxLength`, no buffering after close; not loaded through
`firebase-admin`, whose Realtime Database client is a self-contained
bundle |
| `@fastify/busboy` | 3.2.0 | 3.2.6 | High |
[GHSA-xjh9-v7x6-24jw](GHSA-xjh9-v7x6-24jw)
(@fastify/busboy vulnerable to Denial of Service via oversized multipart
boundary)<br>[GHSA-x8mw-p69m-v3mx](GHSA-x8mw-p69m-v3mx)
(@fastify/busboy vulnerable to Denial of Service via prototype-named
multipart part
header)<br>[GHSA-gxm5-99cw-xjw9](GHSA-gxm5-99cw-xjw9)
(@fastify/busboy vulnerable to CRLF injection via multipart
Content-Disposition filename and name) | Security fixes plus multipart
parsing fixes (split CRLF terminators, epilogue after closing boundary,
urlencoded edge cases) |
| `@grpc/grpc-js` | 1.14.4 | 1.14.7 | High |
[GHSA-m9gg-hp2v-232j](GHSA-m9gg-hp2v-232j)
(@grpc/grpc-js: In certain configurations, getAuthContext can return
unauthorized certificates as though they were
authorized)<br>[GHSA-f596-whhp-79r4](GHSA-f596-whhp-79r4)
(@grpc/grpc-js: The server transmits some error messages thrown by
method handlers to the client in status messages) | Security fixes plus
retry fixes (retries stop after cancel; retries that sometimes didn't
fire now do) |
| `body-parser` | 1.20.5 | 1.20.9 | High |
[GHSA-27r3-jxmh-p828](GHSA-27r3-jxmh-p828)
(body-parser vulnerable to Denial of Service via trailing bytes after a
compressed request
body)<br>[GHSA-v422-hmwv-36x6](GHSA-v422-hmwv-36x6)
(body-parser vulnerable to denial of service when invalid limit value
silently disables size enforcement) | Security fixes only (1.20.x line)
|
| `node-forge` | 1.4.0 | 1.4.4 | High |
[GHSA-7wch-p9px-956x](GHSA-7wch-p9px-956x)
(Forge: Regular expression denial of service in PEM decoding
(pem.decode))<br>[GHSA-jc66-7q78-782g](GHSA-jc66-7q78-782g)
(Forge: PKCS#12 MAC forgery and constant-key PBE via zero iteration
count)<br>[GHSA-8hrf-8g6f-7xwp](GHSA-8hrf-8g6f-7xwp)
(Forge: Denial of service in TLS record processing via a record
interleaved with a fragmented handshake
message)<br>[GHSA-hqq3-7jhf-c5jx](GHSA-hqq3-7jhf-c5jx)
(Forge: Denial of service in TLS record processing via call stack
exhaustion)<br>[GHSA-5x38-2vff-x55p](GHSA-5x38-2vff-x55p)
(Forge: X.509 basicConstraints bypass in verifyCertificateChain() via
deprecated extension OIDs 2.5.29.10 and
2.5.29.13)<br>[GHSA-rhr8-3pm8-cq29](GHSA-rhr8-3pm8-cq29)
(Forge: ASN.1 resource exhaustion via BIT STRING decoding in
asn1.fromDer)<br>[GHSA-6qrw-m8cv-hcxf](GHSA-6qrw-m8cv-hcxf)
(Forge: RSA PKCS#1 v1.5 signature forgery via non-canonical DigestInfo
encoding)<br>[GHSA-2g46-22mc-6gwp](GHSA-2g46-22mc-6gwp)
(node-forge: RSA PKCS#1 v1.5 signature forgery via extra elements in
nested
DigestAlgorithm)<br>[GHSA-6wvx-3r32-xmcg](GHSA-6wvx-3r32-xmcg)
(Forge: Prototype Pollution in forge.http cookie handling via a
malicious
Set-Cookie)<br>[GHSA-525v-9gp9-w22h](GHSA-525v-9gp9-w22h)
(Forge: TLS client crash when the server sends no
certificate)<br>[GHSA-5cwg-6vw7-rj6p](GHSA-5cwg-6vw7-rj6p)
(Forge: AES-GCM authentication bypass via unvalidated tagLength
option)<br>[GHSA-h46v-rmh6-fq4f](GHSA-h46v-rmh6-fq4f)
(Forge: X.509 pathLenConstraint not enforced by verifyCertificateChain()
for CA certificates without
keyUsage)<br>[GHSA-w4xr-hqv8-ch44](GHSA-w4xr-hqv8-ch44)
(Forge: TLS client crash on an unsupported ServerHello compression
method)<br>[GHSA-j8rw-jp99-435v](GHSA-j8rw-jp99-435v)
(Forge: TLS client crash on a handshake record received without a
session)<br>[GHSA-6cv4-p8m7-4r25](GHSA-6cv4-p8m7-4r25)
(Forge: ReDoS in forge.http response header and cookie
trimming)<br>[GHSA-4642-5mcj-2rqw](GHSA-4642-5mcj-2rqw)
(Forge: ASN.1 OID first arc truncation in
asn1.oidToDer)<br>[GHSA-h6cr-wjv9-3cpp](GHSA-h6cr-wjv9-3cpp)
(Forge: Denial of Service via infinite loop in BigInteger.modInverse()
with negative input (incomplete fix of
CVE-2026-33891))<br>[GHSA-4487-j8r4-4g2f](GHSA-4487-j8r4-4g2f)
(Forge: verifyCertificateChain() removes trusted CA certificates with
the same subject from the CA
store)<br>[GHSA-9wg5-mj3p-v49q](GHSA-9wg5-mj3p-v49q)
(Forge: Certificate signature verified with the issuer's RSA signature
scheme)<br>[GHSA-2vgq-wchc-25w7](GHSA-2vgq-wchc-25w7)
(Forge: Incomplete PKCS#7 padding validation in AES/DES CBC and ECB
decryption)<br>[GHSA-6889-vf6x-f3g5](GHSA-6889-vf6x-f3g5)
(Forge: Ed25519 signature verification accepts small-order public
keys)<br>[GHSA-w73w-hhm4-q25p](GHSA-w73w-hhm4-q25p)
(Forge: RSA multi-prime private keys are read as two-prime keys, and
signatures leak a factor of the modulus) | 1.4: security fixes in
ASN.1/PKCS parsing and signature verification |
| `fast-xml-parser` | 5.7.3 | 5.12.1 | Moderate |
[GHSA-7cfw-w2rf-f3jc](GHSA-7cfw-w2rf-f3jc)
(fast-xml-parser: Quadratic-time (ReDoS-class) denial of service in
XMLValidator attribute scanner, default
options)<br>[GHSA-474x-hrwr-fgx4](GHSA-474x-hrwr-fgx4)
(fast-xml-parser: Quadratic CPU consumption scanning unterminated
stop-node tags) | Minor releases with parser and validator performance
fixes, `Uint8Array` input decoded as UTF-8, and the stop-node scanning
fix |
| `protobufjs` | 7.6.4 | 7.6.6 | Moderate |
[GHSA-j3f2-48v5-ccww](GHSA-j3f2-48v5-ccww)
(protobufjs: Denial of Service via infinite loop in .proto option
parsing) | Patch releases backporting 8.x parsing fixes (length-prefix
and string-escape checks) |
| `qs` | 6.15.2 | 6.16.2 | Moderate |
[GHSA-x5fp-wj9c-mxmx](GHSA-x5fp-wj9c-mxmx)
(qs array-limit bypass via bracket-key comma
parsing)<br>[GHSA-4mjr-xmp4-gh2g](GHSA-4mjr-xmp4-gh2g)
(qs: Denial of Service via Attacker Controlled
isBuffer)<br>[GHSA-6pq8-jhm2-2vcw](GHSA-6pq8-jhm2-2vcw)
(qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError
on array elements carrying a non-callable own toString (DoS)) | Security
fixes only (array-limit and `stringify` DoS); 6.16 allowed by the
`express` 4.22.3 update |
| `uuid` | 10.0.0, 9.0.1 | 11.1.1 | Moderate |
[GHSA-w5hq-g745-h8pq](GHSA-w5hq-g745-h8pq)
(uuid: Missing buffer bounds check in v3/v5/v6 when buf is provided) |
Through a new `uuid: ^11.1.1` override; its dependents only call
`uuid.v4()` through `require("uuid")`, which 11 still provides. The
three nested 9.0.1 copies (`gaxios`, `google-gax`, `teeny-request`) are
gone |

### Other version changes

| Package | Change | Why |
|---|---|---|
| `@nodable/entities` | 2.1.0 → 3.1.0 | Pulled up by the
`fast-xml-parser` update |
| `anynum` | — → 1.0.1 | New dependency of updated `strnum` |
| `express` | 4.22.2 → 4.22.3 | Updated within its range; its `qs` range
moves from `~6.15.1` to `~6.16.0` |
| `fast-xml-builder` | 1.1.9 → 1.3.2 | Pulled up by the
`fast-xml-parser` update |
| `is-unsafe` | — → 2.0.3 | New dependency of updated `fast-xml-parser`
|
| `object-inspect` | 1.13.4 → 1.14.0 | Pulled up by the `side-channel`,
`side-channel-list` update |
| `path-expression-matcher` | 1.5.0 → 1.6.2 | Pulled up by the
`fast-xml-builder`, `fast-xml-parser` update |
| `side-channel` | 1.1.0 → 1.1.1 | Pulled up by the `qs` update |
| `side-channel-list` | 1.0.0 → 1.0.1 | Pulled up by the `side-channel`
update |
| `strnum` | 2.2.3 → 2.5.1 | Pulled up by the `fast-xml-parser` update |
| `websocket-extensions` | 0.1.4 → 0.3.0 | Pulled up by the
`websocket-driver` update |
| `xml-naming` | — → 0.3.1 | New dependency of updated
`fast-xml-builder`, `fast-xml-parser` |

## Notes

- Updated with `npm update` (including `express` 4.22.2 → 4.22.3, whose
range now allows `qs` 6.16) and one `uuid` override, not `npm audit fix`
(on `firestore-bigquery-export` it downgraded `google-gax` 4.6.1 → 4.0.4
and pulled in a critical `protobufjs`). No direct dependency changes
version: `firebase-admin` stays on 12 and `firebase-functions` on 4, and
no source changes.
- `package.json` overrides: adds `uuid: ^11.1.1`, because
`firebase-admin` (`uuid` 10) and `gaxios`, `google-gax` and
`teeny-request` (`uuid` 9) pull in versions affected by
GHSA-w5hq-g745-h8pq (fixed in 11.1.1), which caused the remaining
moderate warnings on `firebase-admin`, `@google-cloud/firestore`,
`@google-cloud/storage`, `google-gax`, `gaxios`, `retry-request` and
`teeny-request`. Updating the parent instead isn't practical: only
`firebase-admin` 14 drops the old `uuid` (13.10.0 still uses
`@google-cloud/firestore` 7 → `google-gax` 4 → `uuid` ^9), and 14
removes the namespaced API (`admin.firestore()`, the `firestore` types)
that every source file uses, needs `firebase-functions` 7 (4.9.0 only
accepts `firebase-admin` up to 12) and TypeScript 5.
- The override is safe: the only callers (`firebase-admin` Eventarc,
`gaxios`, `google-gax`, `teeny-request`) call `v4()` with no arguments
through `require("uuid")`. The 10.0 and 11.0 breaking changes are the
supported Node versions and `v4()` now using the built-in
`crypto.randomUUID()`; 11.1.1 sets no `engines`, and the extension runs
on `nodejs22`.
- Dev-only advisories (`baseline-browser-mapping`, `brace-expansion`,
`browserslist`, `cross-spawn`, `handlebars`, `js-yaml`) are left alone:
not installed when the extension is deployed.
- Version and CHANGELOG left for the next release.

## Testing

| Check | Result |
|---|---|
| Build | ✅ (`npm ci` from the new lockfile, `npm run build`, and
`lib/index.js` loads its 3 functions) |
| Unit tests | ➖ No `test` script; the offline `jest` suites
(`aggregator`, `planner`) pass 13 / 13, the emulator suites weren't run
|
| Production `npm audit` | ✅ 17 → 0, no new advisories, no downgrades |
| Live smoke test | ✅ PASS |

### Smoke test

Deployed the extension's functions before (`490b13b`) and after
(`5a5fde2`) the change side by side on a test project and ran the same
21 checks on both, covering every function, the code that uses the
updated packages, and the risks from their changelogs.

| Area | Checks | Same | Differs | Not tested |
|---|---|---|---|---|
| Deploy and runtime settings | 4 | 3 | 1 | 0 |
| Functions (normal and error input) | 6 | 4 | 2 | 0 |
| Updated packages (code paths and changelog risks) | 8 | 8 | 0 | 0 |
| Events | 1 | 0 | 1 | 0 |
| Logs and severity | 2 | 1 | 1 | 0 |
| **Total** | **21** | **16** | **5** | **0** |

**Differences**

| ID | Check | Before | After | Verdict |
|---|---|---|---|---|
| a1 | Cloud Build warnings | `npm warn deprecated uuid@10.0.0` | No
deprecation warning | Improvement |
| c1 | `controllerCore` scheduled runs per round | 10 / 10 / 9 | 11 / 10
/ 9 | Flaky (scheduler tick timing; counter values identical) |
| c5 | `worker` successful runs per round | 10 / 10 / 5 | 10 / 10 / 6 |
Flaky (timing; counter values identical) |
| e1 | `onStart` events from creates vs deletes | r2 6/2, r3 6/3 | r2
4/4, r3 5/4 | Flaky (both sides; same totals, types, sources, payload
shapes; all ids valid v4 UUIDs) |
| f1 | `onWrite` warnings: 429 "no available instance" and "Snapshot has
no readTime" | 429: 563 / 361 / 337; readTime: 1 / 2 / 3 | 429: 511 /
334 / 383; readTime: 1 / 4 / 4 | Flaky (both sides; follows
`maxInstances: 1` queue ordering, same results and messages) |
…n lockfile (#3358)

The extension's `functions/package-lock.json` (version 0.1.30) pins 25
production advisories, which ship in every install built from it; this
moves 17 packages to patched releases (16 within the ranges the
extension already allows, `uuid` through an override), fixing all 25
advisories.

## Advisories (production `npm audit`)

| Severity | Before | After |
|---|---|---|
| Critical | 5 | 0 |
| High | 7 | 0 |
| Moderate | 13 | 0 |
| Low | 0 | 0 |
| **Total** | **25** | **0** |

## Dependency changes

### Fixed

| Package | Before | After | Severity | Advisory | What changed |
|---|---|---|---|---|---|
| `cross-spawn` | 7.0.6 | 7.1.2 | Critical |
[GHSA-ghv9-86vm-4v8m](GHSA-ghv9-86vm-4v8m)
(cross-spawn: Command injection on Windows when spawning batch files) |
Security fix only (Windows batch-file argument escaping) |
| `handlebars` | 4.7.9 | 4.7.10 | Critical |
[GHSA-8r5x-fm3f-whwj](GHSA-8r5x-fm3f-whwj)
(Handlebars: JavaScript Injection via AST Type Confusion in compile
(bypass of
CVE-2026-33937))<br>[GHSA-p8wg-vrv2-v86f](GHSA-p8wg-vrv2-v86f)
(Handlebars: JavaScript Injection via Own Property Check
Bypass)<br>[GHSA-xw65-4hp5-5hc7](GHSA-xw65-4hp5-5hc7)
(Handlebars: JavaScript Injection via Unsafe Inline Embedding of
Precompiled Templates) | Security fixes in template compile and runtime
|
| `proxy-addr` | 2.0.7 | 2.0.8 | Critical |
[GHSA-jqcg-44mw-7w3h](GHSA-jqcg-44mw-7w3h)
(proxy-addr vulnerable to IP spoofing via IPv4-mapped IPv6 trust subnet)
| Security fix only (IPv4-mapped IPv6 trust subnets) |
| `shell-quote` | 1.8.4 | 1.12.0 | Critical |
[GHSA-pqg4-j6r4-53mv](GHSA-pqg4-j6r4-53mv)
(shell-quote: `quote()` command injection via a line terminator in a
token after a `{ comment }`
token)<br>[GHSA-395f-4hp3-45gv](GHSA-395f-4hp3-45gv)
(shell-quote: Quadratic-complexity Denial of Service in `parse()`
(CWE-407)) | Security fix plus quoting fixes |
| `websocket-driver` | 0.7.4 | 0.8.3 | Critical |
[GHSA-xv26-6w52-cph6](GHSA-xv26-6w52-cph6)
(websocket-driver: Message corruption via abuse of protocol length
headers)<br>[GHSA-v36f-rjg3-3v46](GHSA-v36f-rjg3-3v46)
(websocket-driver: Message corruption and denial of service triggered by
crafted client
message)<br>[GHSA-c4gv-fww2-jp3r](GHSA-c4gv-fww2-jp3r)
(websocket-driver: Denial of service triggered by malformed
Sec-WebSocket-Key1
header)<br>[GHSA-9g4r-f5gq-qjrr](GHSA-9g4r-f5gq-qjrr)
(websocket-driver: Denial of service triggered by client sending a
single pong
frame)<br>[GHSA-7487-9gcw-9w8w](GHSA-7487-9gcw-9w8w)
(websocket-driver: Memory exhaustion triggered by buffering of
zero-length fragmented
frames)<br>[GHSA-v674-7268-hvqh](GHSA-v674-7268-hvqh)
(websocket-driver: Memory exhaustion triggered by buffering of data
received after socket is
closed)<br>[GHSA-mp7j-qc5w-4988](GHSA-mp7j-qc5w-4988)
(websocket-driver: Resource limit bypass via message compression) | 0.8:
old draft-75/76 protocols off by default, buffered data capped at
`maxLength`, no buffering after close; not loaded through
`firebase-admin`, whose Realtime Database client is a self-contained
bundle |
| `@fastify/busboy` | 3.2.0 | 3.2.6 | High |
[GHSA-xjh9-v7x6-24jw](GHSA-xjh9-v7x6-24jw)
(@fastify/busboy vulnerable to Denial of Service via oversized multipart
boundary)<br>[GHSA-x8mw-p69m-v3mx](GHSA-x8mw-p69m-v3mx)
(@fastify/busboy vulnerable to Denial of Service via prototype-named
multipart part
header)<br>[GHSA-gxm5-99cw-xjw9](GHSA-gxm5-99cw-xjw9)
(@fastify/busboy vulnerable to CRLF injection via multipart
Content-Disposition filename and name) | Security fixes plus multipart
parsing fixes (split CRLF terminators, epilogue after closing boundary,
urlencoded edge cases) |
| `@grpc/grpc-js` | 1.14.4 | 1.14.7 | High |
[GHSA-m9gg-hp2v-232j](GHSA-m9gg-hp2v-232j)
(@grpc/grpc-js: In certain configurations, getAuthContext can return
unauthorized certificates as though they were
authorized)<br>[GHSA-f596-whhp-79r4](GHSA-f596-whhp-79r4)
(@grpc/grpc-js: The server transmits some error messages thrown by
method handlers to the client in status messages) | Security fixes plus
retry fixes (retries stop after cancel; retries that sometimes didn't
fire now do) |
| `body-parser` | 1.20.5 | 1.20.9 | High |
[GHSA-27r3-jxmh-p828](GHSA-27r3-jxmh-p828)
(body-parser vulnerable to Denial of Service via trailing bytes after a
compressed request
body)<br>[GHSA-v422-hmwv-36x6](GHSA-v422-hmwv-36x6)
(body-parser vulnerable to denial of service when invalid limit value
silently disables size enforcement) | Security fixes only (1.20.x line)
|
| `brace-expansion` | 1.1.13 | 1.1.22 | High |
[GHSA-3jxr-9vmj-r5cp](GHSA-3jxr-9vmj-r5cp)
(brace-expansion: DoS via exponential-time expansion of consecutive
non-expanding {}
groups)<br>[GHSA-mh99-v99m-4gvg](GHSA-mh99-v99m-4gvg)
(brace-expansion: DoS via unbounded expansion length causing an
out-of-memory process
crash)<br>[GHSA-rgw5-rvv9-x895](GHSA-rgw5-rvv9-x895)
(brace-expansion: DoS via unbounded intermediate arrays, bypassing the
CVE-2026-14257
mitigation)<br>[GHSA-qhr7-859c-m2p7](GHSA-qhr7-859c-m2p7)
(brace-expansion: DoS via uncontrolled recursion on nested brace groups
causing stack
exhaustion)<br>[GHSA-6j4f-fj2g-mc7p](GHSA-6j4f-fj2g-mc7p)
(brace-expansion: DoS via uncontrolled recursion in parseCommaParts
causing stack
exhaustion)<br>[GHSA-q2hr-2g5m-vwhr](GHSA-q2hr-2g5m-vwhr)
(brace-expansion: Quadratic-time expansion of the `{a},b}` rewrite
causes CPU denial of service) | Security fixes only (recursion and
quadratic-time expansion limits) |
| `browserslist` | 4.28.4 | 4.29.6 | High |
[GHSA-c83g-rgw3-j3cx](GHSA-c83g-rgw3-j3cx)
(Browserslist: Unbounded memory growth (no cache eviction) via distinct
query results, leading to eventual
OOM)<br>[GHSA-73wf-gq98-2v4g](GHSA-73wf-gq98-2v4g)
(Browserslist: Uncaught crash / prototype write via untrusted
browserslist-stats.json custom stats (normalizeStats)) | Build tooling
only; browser data update |
| `js-yaml` | 3.14.2 | 3.15.2 | High |
[GHSA-52cp-r559-cp3m](GHSA-52cp-r559-cp3m)
(js-yaml: YAML merge-key chains can force quadratic CPU
consumption)<br>[GHSA-5p4m-2wfm-xmqj](GHSA-5p4m-2wfm-xmqj)
(JS-YAML: Quadratic CPU consumption in !!omap resolution (3.x and 4.x) —
CVE-2026-59870 fix not
backported)<br>[GHSA-2883-xcg3-v3hh](GHSA-2883-xcg3-v3hh)
(js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge
sources)<br>[GHSA-h67p-54hq-rp68](GHSA-h67p-54hq-rp68)
(JS-YAML: Quadratic-complexity DoS in merge key handling via repeated
aliases) | Security fix in the YAML parser (merge-key handling) |
| `node-forge` | 1.4.0 | 1.4.4 | High |
[GHSA-7wch-p9px-956x](GHSA-7wch-p9px-956x)
(Forge: Regular expression denial of service in PEM decoding
(pem.decode))<br>[GHSA-jc66-7q78-782g](GHSA-jc66-7q78-782g)
(Forge: PKCS#12 MAC forgery and constant-key PBE via zero iteration
count)<br>[GHSA-8hrf-8g6f-7xwp](GHSA-8hrf-8g6f-7xwp)
(Forge: Denial of service in TLS record processing via a record
interleaved with a fragmented handshake
message)<br>[GHSA-hqq3-7jhf-c5jx](GHSA-hqq3-7jhf-c5jx)
(Forge: Denial of service in TLS record processing via call stack
exhaustion)<br>[GHSA-5x38-2vff-x55p](GHSA-5x38-2vff-x55p)
(Forge: X.509 basicConstraints bypass in verifyCertificateChain() via
deprecated extension OIDs 2.5.29.10 and
2.5.29.13)<br>[GHSA-rhr8-3pm8-cq29](GHSA-rhr8-3pm8-cq29)
(Forge: ASN.1 resource exhaustion via BIT STRING decoding in
asn1.fromDer)<br>[GHSA-6qrw-m8cv-hcxf](GHSA-6qrw-m8cv-hcxf)
(Forge: RSA PKCS#1 v1.5 signature forgery via non-canonical DigestInfo
encoding)<br>[GHSA-2g46-22mc-6gwp](GHSA-2g46-22mc-6gwp)
(node-forge: RSA PKCS#1 v1.5 signature forgery via extra elements in
nested
DigestAlgorithm)<br>[GHSA-6wvx-3r32-xmcg](GHSA-6wvx-3r32-xmcg)
(Forge: Prototype Pollution in forge.http cookie handling via a
malicious
Set-Cookie)<br>[GHSA-525v-9gp9-w22h](GHSA-525v-9gp9-w22h)
(Forge: TLS client crash when the server sends no
certificate)<br>[GHSA-5cwg-6vw7-rj6p](GHSA-5cwg-6vw7-rj6p)
(Forge: AES-GCM authentication bypass via unvalidated tagLength
option)<br>[GHSA-h46v-rmh6-fq4f](GHSA-h46v-rmh6-fq4f)
(Forge: X.509 pathLenConstraint not enforced by verifyCertificateChain()
for CA certificates without
keyUsage)<br>[GHSA-w4xr-hqv8-ch44](GHSA-w4xr-hqv8-ch44)
(Forge: TLS client crash on an unsupported ServerHello compression
method)<br>[GHSA-j8rw-jp99-435v](GHSA-j8rw-jp99-435v)
(Forge: TLS client crash on a handshake record received without a
session)<br>[GHSA-6cv4-p8m7-4r25](GHSA-6cv4-p8m7-4r25)
(Forge: ReDoS in forge.http response header and cookie
trimming)<br>[GHSA-4642-5mcj-2rqw](GHSA-4642-5mcj-2rqw)
(Forge: ASN.1 OID first arc truncation in
asn1.oidToDer)<br>[GHSA-h6cr-wjv9-3cpp](GHSA-h6cr-wjv9-3cpp)
(Forge: Denial of Service via infinite loop in BigInteger.modInverse()
with negative input (incomplete fix of
CVE-2026-33891))<br>[GHSA-4487-j8r4-4g2f](GHSA-4487-j8r4-4g2f)
(Forge: verifyCertificateChain() removes trusted CA certificates with
the same subject from the CA
store)<br>[GHSA-9wg5-mj3p-v49q](GHSA-9wg5-mj3p-v49q)
(Forge: Certificate signature verified with the issuer's RSA signature
scheme)<br>[GHSA-2vgq-wchc-25w7](GHSA-2vgq-wchc-25w7)
(Forge: Incomplete PKCS#7 padding validation in AES/DES CBC and ECB
decryption)<br>[GHSA-6889-vf6x-f3g5](GHSA-6889-vf6x-f3g5)
(Forge: Ed25519 signature verification accepts small-order public
keys)<br>[GHSA-w73w-hhm4-q25p](GHSA-w73w-hhm4-q25p)
(Forge: RSA multi-prime private keys are read as two-prime keys, and
signatures leak a factor of the modulus) | 1.4: security fixes in
ASN.1/PKCS parsing and signature verification |
| `baseline-browser-mapping` | 2.10.38 | 2.11.41 | Moderate |
[GHSA-w5vr-8v7q-w6rv](GHSA-w5vr-8v7q-w6rv)
(baseline-browser-mapping process termination on invalid input causes
denial of service) | Browser-support data refresh; build tooling only |
| `fast-xml-parser` | 5.7.3 | 5.12.1 | Moderate |
[GHSA-7cfw-w2rf-f3jc](GHSA-7cfw-w2rf-f3jc)
(fast-xml-parser: Quadratic-time (ReDoS-class) denial of service in
XMLValidator attribute scanner, default
options)<br>[GHSA-474x-hrwr-fgx4](GHSA-474x-hrwr-fgx4)
(fast-xml-parser: Quadratic CPU consumption scanning unterminated
stop-node tags) | Minor releases with parser and validator performance
fixes, `Uint8Array` input decoded as UTF-8, and the stop-node scanning
fix |
| `protobufjs` | 7.6.4 | 7.6.6 | Moderate |
[GHSA-j3f2-48v5-ccww](GHSA-j3f2-48v5-ccww)
(protobufjs: Denial of Service via infinite loop in .proto option
parsing) | Patch releases backporting 8.x parsing fixes (length-prefix
and string-escape checks) |
| `qs` | 6.15.2 | 6.16.2 | Moderate |
[GHSA-x5fp-wj9c-mxmx](GHSA-x5fp-wj9c-mxmx)
(qs array-limit bypass via bracket-key comma
parsing)<br>[GHSA-4mjr-xmp4-gh2g](GHSA-4mjr-xmp4-gh2g)
(qs: Denial of Service via Attacker Controlled
isBuffer)<br>[GHSA-6pq8-jhm2-2vcw](GHSA-6pq8-jhm2-2vcw)
(qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError
on array elements carrying a non-callable own toString (DoS)) | Security
fixes only (array-limit, `isBuffer` and `stringify` DoS); reached by
updating `express` within its range |
| `uuid` | 9.0.1, 10.0.0 | 11.1.1 | Moderate |
[GHSA-w5hq-g745-h8pq](GHSA-w5hq-g745-h8pq)
(uuid: Missing buffer bounds check in v3/v5/v6 when buf is provided) |
Through a new `uuid: ^11.1.1` override; its dependents only call
`uuid.v4()` with no arguments through `require("uuid")`, which 11 still
provides |

### Other version changes

| Package | Change | Why |
|---|---|---|
| `@nodable/entities` | 2.1.0 → 3.1.0 | Pulled up by the
`fast-xml-parser` update |
| `anynum` | — → 1.0.1 | New dependency of updated `strnum` |
| `caniuse-lite` | 1.0.30001799 → 1.0.30001829 | Pulled up by the
`browserslist` update |
| `electron-to-chromium` | 1.5.376 → 1.5.496 | Pulled up by the
`browserslist` update |
| `express` | 4.22.2 → 4.22.3 | Updated within its range
(`firebase-functions` allows `^4.17.1`); 4.22.3 allows `qs` `~6.16.0` |
| `fast-xml-builder` | 1.1.9 → 1.3.2 | Pulled up by the
`fast-xml-parser` update |
| `is-unsafe` | — → 2.0.3 | New dependency of updated `fast-xml-parser`
|
| `node-releases` | 2.0.48 → 2.0.67 | Pulled up by the `browserslist`
update |
| `object-inspect` | 1.13.4 → 1.14.0 | Pulled up by the `side-channel`,
`side-channel-list` update |
| `path-expression-matcher` | 1.5.0 → 1.6.2 | Pulled up by the
`fast-xml-builder`, `fast-xml-parser` update |
| `side-channel` | 1.1.0 → 1.1.1 | Pulled up by the `qs` update |
| `side-channel-list` | 1.0.0 → 1.0.1 | Pulled up by the `side-channel`
update |
| `strnum` | 2.2.3 → 2.5.1 | Pulled up by the `fast-xml-parser` update |
| `update-browserslist-db` | 1.2.3 → 1.4.0 | Pulled up by the
`browserslist` update |
| `websocket-extensions` | 0.1.4 → 0.3.0 | Pulled up by the
`websocket-driver` update |
| `xml-naming` | — → 0.3.1 | New dependency of updated
`fast-xml-builder`, `fast-xml-parser` |

## Notes

- Updated with in-range `npm update` and one override, not `npm audit
fix` (on `firestore-bigquery-export` it downgraded `google-gax` 4.6.1 →
4.0.4 and pulled in a critical `protobufjs`). No direct dependency
changes version: `firebase-admin` stays on 12, `firebase-functions` on 4
and `@google-cloud/pubsub` on 4.
- `package.json` overrides: adds `uuid: ^11.1.1` (same as #3341),
because `firebase-admin`, `gaxios`, `google-gax` and `teeny-request`
pull in `uuid` 9/10 (GHSA-w5hq-g745-h8pq, fixed in 11.1.1), and that one
advisory caused 9 of the remaining moderate warnings. Safe: every
dependent calls only `v4()` with no arguments via CommonJS
`require("uuid")` (Eventarc event ids, gax request ids, multipart
boundaries), and 11 keeps that API and CommonJS build; it stays below
13, which is ESM-only.
- A parent update can't clear `uuid`: `firebase-admin` 13 still uses
`@google-cloud/firestore` 7 and `@google-cloud/storage` 7, which pull in
`uuid` 9; `firebase-admin` 14 (with `firebase-functions` 7 and
`@google-cloud/pubsub` 6) audits clean but breaks `npm ci`, because the
dev dependency `firebase-functions-test` (3.5.0, latest) only accepts
`firebase-admin` up to ^13.
- Dev-only advisories (`firebase-functions-test`, `ts-deepmerge`) are
left alone: not installed when the extension is deployed.
- Version and CHANGELOG left for the next release.
- Related: #3059 (Dependabot, `browserslist` only)

## Testing

| Check | Result |
|---|---|
| Build | ✅ (`npm ci` from the new lockfile, `npm run build`, and
`lib/index.js` loads) |
| Unit tests | ➖ Emulator suite (`firebase emulators:exec`), not run
offline |
| Production `npm audit` | ✅ 25 → 0, no new advisories, no downgrades |
| Live smoke test | ✅ PASS |

### Smoke test

Deployed the extension before (`490b13b`) and after (`8fe9bf9`) the
change side by side on a test project and ran the same 25 checks on
both, covering every function, the code that uses the updated packages,
and the risks from their changelogs.

| Area | Checks | Same | Differs | Not tested |
|---|---|---|---|---|
| Deploy and runtime settings | 5 | 5 | 0 | 0 |
| Functions (normal and error input) | 6 | 5 | 1 | 0 |
| Updated packages (code paths and changelog risks) | 10 | 10 | 0 | 0 |
| Events | 3 | 3 | 0 | 0 |
| Logs and severity | 1 | 0 | 1 | 0 |
| **Total** | **25** | **23** | **2** | **0** |

**Differences**

| ID | Check | Before | After | Verdict |
|---|---|---|---|---|
| c1 | `clearData` with auto-discovery, two calls at once:
`handleSearch` fan-out count | All expected `handleSearch` runs | 2
fewer runs in the first round; identical in the re-run (same count, same
messages, same final data) | Flaky (both sides): `search()` doesn't
await its Pub/Sub publishes |
| f1 | Cold-start log lines ("Initializing extension") | Varies per
round | Varies per round, in both directions | Flaky (both sides):
platform scaling, no effect on output |
…3341)

The extension's `functions/package-lock.json` (version 0.3.4) pins 19
production advisories, which ship in every install built from it; this
moves 9 packages to patched releases (8 within the ranges the extension
already allows, `uuid` through an override), fixing 19 advisories.

## Advisories (production `npm audit`)

| Severity | Before | After |
|---|---|---|
| Critical | 2 | 0 |
| High | 3 | 0 |
| Moderate | 14 | 0 |
| Low | 0 | 0 |
| **Total** | **19** | **0** |

## Dependency changes

### Fixed

| Package | Before | After | Severity | Advisory | What changed |
|---|---|---|---|---|---|
| `proxy-addr` | 2.0.7 | 2.0.8 | Critical |
[GHSA-jqcg-44mw-7w3h](GHSA-jqcg-44mw-7w3h)
(proxy-addr vulnerable to IP spoofing via IPv4-mapped IPv6 trust subnet)
| Security fix only (IPv4-mapped IPv6 trust subnets) |
| `websocket-driver` | 0.7.4 | 0.8.3 | Critical |
[GHSA-xv26-6w52-cph6](GHSA-xv26-6w52-cph6)
(websocket-driver: Message corruption via abuse of protocol length
headers)<br>[GHSA-v36f-rjg3-3v46](GHSA-v36f-rjg3-3v46)
(websocket-driver: Message corruption and denial of service triggered by
crafted client
message)<br>[GHSA-c4gv-fww2-jp3r](GHSA-c4gv-fww2-jp3r)
(websocket-driver: Denial of service triggered by malformed
Sec-WebSocket-Key1
header)<br>[GHSA-9g4r-f5gq-qjrr](GHSA-9g4r-f5gq-qjrr)
(websocket-driver: Denial of service triggered by client sending a
single pong
frame)<br>[GHSA-7487-9gcw-9w8w](GHSA-7487-9gcw-9w8w)
(websocket-driver: Memory exhaustion triggered by buffering of
zero-length fragmented
frames)<br>[GHSA-v674-7268-hvqh](GHSA-v674-7268-hvqh)
(websocket-driver: Memory exhaustion triggered by buffering of data
received after socket is
closed)<br>[GHSA-mp7j-qc5w-4988](GHSA-mp7j-qc5w-4988)
(websocket-driver: Resource limit bypass via message compression) | 0.8:
old draft-75/76 protocols off by default, buffered data capped at
`maxLength`, no buffering after close; not loaded through
`firebase-admin`, whose Realtime Database client is a self-contained
bundle |
| `@fastify/busboy` | 3.2.0 | 3.2.6 | High |
[GHSA-xjh9-v7x6-24jw](GHSA-xjh9-v7x6-24jw)
(@fastify/busboy vulnerable to Denial of Service via oversized multipart
boundary)<br>[GHSA-x8mw-p69m-v3mx](GHSA-x8mw-p69m-v3mx)
(@fastify/busboy vulnerable to Denial of Service via prototype-named
multipart part
header)<br>[GHSA-gxm5-99cw-xjw9](GHSA-gxm5-99cw-xjw9)
(@fastify/busboy vulnerable to CRLF injection via multipart
Content-Disposition filename and name) | Security fixes plus multipart
parsing fixes (split CRLF terminators, epilogue after closing boundary,
urlencoded edge cases) |
| `@grpc/grpc-js` | 1.14.4 | 1.14.7 | High |
[GHSA-m9gg-hp2v-232j](GHSA-m9gg-hp2v-232j)
(@grpc/grpc-js: In certain configurations, getAuthContext can return
unauthorized certificates as though they were
authorized)<br>[GHSA-f596-whhp-79r4](GHSA-f596-whhp-79r4)
(@grpc/grpc-js: The server transmits some error messages thrown by
method handlers to the client in status messages) | Security fixes plus
retry fixes (retries stop after cancel; retries that sometimes didn't
fire now do) |
| `body-parser` | 1.20.5 | 1.20.9 | High |
[GHSA-27r3-jxmh-p828](GHSA-27r3-jxmh-p828)
(body-parser vulnerable to Denial of Service via trailing bytes after a
compressed request
body)<br>[GHSA-v422-hmwv-36x6](GHSA-v422-hmwv-36x6)
(body-parser vulnerable to denial of service when invalid limit value
silently disables size enforcement) | Security fixes only (1.20.x line)
|
| `fast-xml-parser` | 5.7.3 | 5.12.1 | Moderate |
[GHSA-7cfw-w2rf-f3jc](GHSA-7cfw-w2rf-f3jc)
(fast-xml-parser: Quadratic-time (ReDoS-class) denial of service in
XMLValidator attribute scanner, default
options)<br>[GHSA-474x-hrwr-fgx4](GHSA-474x-hrwr-fgx4)
(fast-xml-parser: Quadratic CPU consumption scanning unterminated
stop-node tags) | Minor releases with parser and validator performance
fixes, `Uint8Array` input decoded as UTF-8, and the stop-node scanning
fix |
| `protobufjs` | 7.6.4 | 7.6.6 | Moderate |
[GHSA-j3f2-48v5-ccww](GHSA-j3f2-48v5-ccww)
(protobufjs: Denial of Service via infinite loop in .proto option
parsing) | Patch releases backporting 8.x parsing fixes (length-prefix
and string-escape checks) |
| `qs` | 6.15.2 | 6.16.2 | Moderate |
[GHSA-x5fp-wj9c-mxmx](GHSA-x5fp-wj9c-mxmx)
(qs array-limit bypass via bracket-key comma
parsing)<br>[GHSA-4mjr-xmp4-gh2g](GHSA-4mjr-xmp4-gh2g)
(qs: Denial of Service via Attacker Controlled
isBuffer)<br>[GHSA-6pq8-jhm2-2vcw](GHSA-6pq8-jhm2-2vcw)
(qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError
on array elements carrying a non-callable own toString (DoS)) | Security
fixes only (array-limit and `stringify` DoS) |
| `uuid` | 9.0.1 | 11.1.1 | Moderate |
[GHSA-w5hq-g745-h8pq](GHSA-w5hq-g745-h8pq)
(uuid: Missing buffer bounds check in v3/v5/v6 when buf is provided) |
Through a new `uuid: ^11.1.1` override; its dependents only call
`uuid.v4()` through `require(\"uuid\")`, which 11 still provides |

### Other version changes

| Package | Change | Why |
|---|---|---|
| `@nodable/entities` | 2.1.0 → 3.1.0 | Pulled up by the
`fast-xml-parser` update |
| `anynum` | — → 1.0.1 | New dependency of updated `strnum` |
| `express` | 4.22.2 → 4.22.3 | Updated within its range |
| `fast-xml-builder` | 1.1.9 → 1.3.2 | Pulled up by the
`fast-xml-parser` update |
| `is-unsafe` | — → 2.0.3 | New dependency of updated `fast-xml-parser`
|
| `path-expression-matcher` | 1.5.0 → 1.6.2 | Pulled up by the
`fast-xml-builder`, `fast-xml-parser` update |
| `side-channel` | 1.1.0 → 1.1.1 | Pulled up by the `qs` update |
| `side-channel-list` | 1.0.0 → 1.0.1 | Pulled up by the `side-channel`
update |
| `strnum` | 2.2.3 → 2.5.1 | Pulled up by the `fast-xml-parser` update |
| `websocket-extensions` | 0.1.4 → 0.3.0 | Pulled up by the
`websocket-driver` update |
| `xml-naming` | — → 0.3.1 | New dependency of updated
`fast-xml-builder`, `fast-xml-parser` |

## Notes

- Updated with `npm update`, not `npm audit fix` (it downgraded
`google-gax` 4.6.1 → 4.0.4, which pulled in an older `protobufjs`
(critical) and `@grpc/grpc-js`). No direct dependency changes version:
`firebase-admin` stays on 13 and `firebase-functions` on 6.
- `package.json` overrides: adds `uuid: ^11.1.1`, because
`@google-cloud/bigquery`, `google-gax` and `teeny-request` pull in
`uuid` 9 (GHSA-w5hq-g745-h8pq, fixed in 11.1.1), and that one advisory
caused all 11 remaining moderate warnings on `firebase-admin`,
`firebase-functions`, `@google-cloud/*` and the change-tracker. Also
raises the existing dev-only `minimatch` override from `^10.2.1` to
`^11.0.1` (used by `jest`/`nyc`).
- `websocket-driver` now moves to 0.8.3 instead of staying on 0.7.5 (the
first fixed version when this PR was opened, and what the kit shipped):
five newer advisories are only fixed in 0.8.0–0.8.1. 0.8.x is inside the
`>=0.5.1` range `faye-websocket` allows.
- Dev-only advisories (1 critical, 5 moderate across `cross-spawn`,
`glob` and `ts-deepmerge`) are left alone: not installed when the
extension is deployed. `firebase-functions-test` depends on
`ts-deepmerge` ^2 (prototype-method-override DoS, fixed in 8.0.0), and
v8 drops the default export it calls, so overriding it would break the
test helper.
- The extension version and CHANGELOG are not bumped: users only get
these fixes once a new version (0.3.5 or later) is published.

## Testing

| Check | Result |
|---|---|
| Build | ✅ (`npm ci` from the new lockfile, `npm run build`, and
`lib/index.js` loads) |
| Unit tests | ➖ 54 / 55 pass; `e2e.test.ts` fails the same way on
`next` (`bq_e2e_test_raw_changelog` table missing in
`dev-extensions-testing`) |
| Production `npm audit` | ✅ 19 → 0, no new advisories, no downgrades |
| Live smoke test | ✅ PASS (0 regressions) |

### Smoke test

Deployed the extension's functions before (`490b13b`) and after
(`3c2bbab`) the change side by side on a test project as plain Cloud
Functions, each installed with `npm ci` from its own lockfile, and ran
the same 25 checks on both, covering every function, the code that uses
the updated packages (including the `uuid` 11 override), and the risks
from their changelogs.

| Area | Checks | Same | Differs | Not tested |
|---|---|---|---|---|
| Deploy and runtime settings | 7 | 6 | 1 | 0 |
| Functions (normal and error input) | 8 | 8 | 0 | 0 |
| Updated packages (code paths and changelog risks) | 5 | 5 | 0 | 0 |
| Events | 3 | 3 | 0 | 0 |
| Logs and severity | 2 | 2 | 0 | 0 |
| **Total** | **25** | **24** | **1** | **0** |

BigQuery rows for create, update, delete and the task path were
byte-identical for a document with every field type, as were error
handling (bad task bodies, an invalid timestamp, a deleted table, an
oversized event, a missing queue), the onStart/onSuccess/onError events
and the 35 ERROR/WARNING entries per side. The two lifecycle functions
end with "RuntimeData not found" on both sides because these test
deploys aren't real extension instances; every step before that matched.

**Differences**

| ID | Check | Before | After | Verdict |
|---|---|---|---|---|
| a2 | First deploy output | No extra line | One CLI line "There was an
error retrieving the Firestore database"; gone on the second deploy |
Flaky (CLI) |
…tension lockfile (#3363)

> ⚠️ Smoke test failed on 2026-12-02: cold start 0.7–1.2 s slower and
~18 MB more memory per instance, because `@google-cloud/firestore` 9 now
loads `google-gax` and gRPC at startup (d8, reproduced 2/2).

The extension's `functions/package-lock.json` (version 0.1.20) pins 16
production advisories, which ship in every install built from it; this
moves 9 packages to patched releases (6 within existing ranges, `uuid`
dropped by updating `firebase-admin` 13 → 14, and `body-parser` and `qs`
through `express` 5 from the `firebase-functions` 6 → 7 update that
`firebase-admin` 14 needs), fixing all 16 advisories.

## Advisories (production `npm audit`)

| Severity | Before | After |
|---|---|---|
| Critical | 2 | 0 |
| High | 3 | 0 |
| Moderate | 11 | 0 |
| Low | 0 | 0 |
| **Total** | **16** | **0** |

## Dependency changes

### Fixed

| Package | Before | After | Severity | Advisory | What changed |
|---|---|---|---|---|---|
| `proxy-addr` | 2.0.7 | 2.0.8 | Critical |
[GHSA-jqcg-44mw-7w3h](GHSA-jqcg-44mw-7w3h)
(proxy-addr vulnerable to IP spoofing via IPv4-mapped IPv6 trust subnet)
| Security fix only (IPv4-mapped IPv6 trust subnets) |
| `websocket-driver` | 0.7.5 | 0.8.3 | Critical |
[GHSA-v36f-rjg3-3v46](GHSA-v36f-rjg3-3v46)
(websocket-driver: Message corruption and denial of service triggered by
crafted client
message)<br>[GHSA-c4gv-fww2-jp3r](GHSA-c4gv-fww2-jp3r)
(websocket-driver: Denial of service triggered by malformed
Sec-WebSocket-Key1
header)<br>[GHSA-9g4r-f5gq-qjrr](GHSA-9g4r-f5gq-qjrr)
(websocket-driver: Denial of service triggered by client sending a
single pong
frame)<br>[GHSA-7487-9gcw-9w8w](GHSA-7487-9gcw-9w8w)
(websocket-driver: Memory exhaustion triggered by buffering of
zero-length fragmented
frames)<br>[GHSA-v674-7268-hvqh](GHSA-v674-7268-hvqh)
(websocket-driver: Memory exhaustion triggered by buffering of data
received after socket is closed) | 0.8: old draft-75/76 protocols off by
default, buffered data capped at `maxLength`, no buffering after close;
not loaded through `firebase-admin`, whose Realtime Database client is a
self-contained bundle |
| `@fastify/busboy` | 3.2.0 | 3.2.6 | High |
[GHSA-xjh9-v7x6-24jw](GHSA-xjh9-v7x6-24jw)
(@fastify/busboy vulnerable to Denial of Service via oversized multipart
boundary)<br>[GHSA-x8mw-p69m-v3mx](GHSA-x8mw-p69m-v3mx)
(@fastify/busboy vulnerable to Denial of Service via prototype-named
multipart part
header)<br>[GHSA-gxm5-99cw-xjw9](GHSA-gxm5-99cw-xjw9)
(@fastify/busboy vulnerable to CRLF injection via multipart
Content-Disposition filename and name) | Security fixes plus multipart
parsing fixes (split CRLF terminators, epilogue after closing boundary,
urlencoded edge cases) |
| `@grpc/grpc-js` | 1.14.4 | 1.14.7 | High |
[GHSA-m9gg-hp2v-232j](GHSA-m9gg-hp2v-232j)
(@grpc/grpc-js: In certain configurations, getAuthContext can return
unauthorized certificates as though they were
authorized)<br>[GHSA-f596-whhp-79r4](GHSA-f596-whhp-79r4)
(@grpc/grpc-js: The server transmits some error messages thrown by
method handlers to the client in status messages) | Security fixes plus
retry fixes (retries stop after cancel; retries that sometimes didn't
fire now do) |
| `body-parser` | 1.20.5 | 2.4.0 | High |
[GHSA-27r3-jxmh-p828](GHSA-27r3-jxmh-p828)
(body-parser vulnerable to Denial of Service via trailing bytes after a
compressed request
body)<br>[GHSA-v422-hmwv-36x6](GHSA-v422-hmwv-36x6)
(body-parser vulnerable to denial of service when invalid limit value
silently disables size enforcement) | 2.x line that `express` 5 uses;
only used for HTTPS functions, which this extension doesn't have |
| `fast-xml-parser` | 5.7.3 | 5.12.1 | Moderate |
[GHSA-7cfw-w2rf-f3jc](GHSA-7cfw-w2rf-f3jc)
(fast-xml-parser: Quadratic-time (ReDoS-class) denial of service in
XMLValidator attribute scanner, default
options)<br>[GHSA-474x-hrwr-fgx4](GHSA-474x-hrwr-fgx4)
(fast-xml-parser: Quadratic CPU consumption scanning unterminated
stop-node tags) | Minor releases with parser and validator performance
fixes, `Uint8Array` input decoded as UTF-8, and the stop-node scanning
fix |
| `protobufjs` | 7.6.4 | 7.6.6 | Moderate |
[GHSA-j3f2-48v5-ccww](GHSA-j3f2-48v5-ccww)
(protobufjs: Denial of Service via infinite loop in .proto option
parsing) | Patch releases backporting 8.x parsing fixes (length-prefix
and string-escape checks) |
| `qs` | 6.15.2 | 6.17.1 | Moderate |
[GHSA-x5fp-wj9c-mxmx](GHSA-x5fp-wj9c-mxmx)
(qs array-limit bypass via bracket-key comma
parsing)<br>[GHSA-4mjr-xmp4-gh2g](GHSA-4mjr-xmp4-gh2g)
(qs: Denial of Service via Attacker Controlled
isBuffer)<br>[GHSA-6pq8-jhm2-2vcw](GHSA-6pq8-jhm2-2vcw)
(qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError
on array elements carrying a non-callable own toString (DoS)) | Pulled
up by `express` 5; only used for HTTPS request parsing, which this
extension doesn't have |
| `uuid` | 9.0.1 | removed | Moderate |
[GHSA-w5hq-g745-h8pq](GHSA-w5hq-g745-h8pq)
(uuid: Missing buffer bounds check in v3/v5/v6 when buf is provided) |
No longer installed: `google-gax` 6, `gaxios` 7/8 and `teeny-request` 11
(pulled in by `firebase-admin` 14) don't depend on it |

### Other version changes

| Package | Change | Why |
|---|---|---|
| `@google-cloud/firestore` | 7.11.6 → 9.4.1 | Pulled up by the
`firebase-admin` update |
| `@google-cloud/firestore-api` | — → 0.7.1 | New dependency of updated
`@google-cloud/firestore` |
| `@google-cloud/paginator` | 5.0.0 → 7.2.0 | Pulled up by the
`@google-cloud/storage` update |
| `@google-cloud/projectify` | 4.0.0 → 6.2.1 | Pulled up by the
`@google-cloud/storage` update |
| `@google-cloud/promisify` | 4.0.0 → 6.2.1 | Pulled up by the
`@google-cloud/storage` update |
| `@google-cloud/storage` | 7.21.0 → 8.4.0 | Pulled up by the
`firebase-admin` update |
| `@grpc/proto-loader` | 0.7.15, 0.8.1 → 0.8.1 | Pulled up by the
`@grpc/grpc-js`, `google-gax` update; older copy dropped |
| `@nodable/entities` | 2.1.0 → 3.1.0 | Pulled up by the
`fast-xml-parser` update |
| `@opentelemetry/api` | 1.9.1 → 1.10.0 | Pulled up by the
`@google-cloud/firestore`, `google-gax` update |
| `@tootallnate/once` | 2.0.1 → removed | Removed: no longer used by
updated `http-proxy-agent` |
| `@types/body-parser` | 1.19.6 → 2.2.0 | Pulled up by the
`@types/express` update |
| `@types/caseless` | 0.12.5 → removed | Removed along with
`@types/request` |
| `@types/express` | 4.17.25 → 5.0.6 | Pulled up by the
`firebase-functions` update |
| `@types/express-serve-static-core` | 4.19.9 → 4.19.9, 5.1.3 | 5.1.3
added for `@types/express` 5; the extension's own 4.19.9 pin stays |
| `@types/long` | 4.0.2 → removed | Removed: no longer used by updated
`google-gax` |
| `@types/mime` | 1.3.5 → removed | Removed: no longer used by updated
`@types/send` |
| `@types/request` | 2.48.12 → removed | Removed: no longer used by
updated `retry-request` |
| `@types/send` | 0.17.6, 1.2.1 → 1.2.1 | Pulled up by the
`@types/express-serve-static-core` update; older copy dropped |
| `@types/serve-static` | 1.15.10 → 2.2.0 | Pulled up by the
`@types/express` update |
| `@types/tough-cookie` | 4.0.5 → removed | Removed along with
`@types/request` |
| `accepts` | 1.3.8 → 2.0.0 | Pulled up by the `express` update |
| `agent-base` | 6.0.2, 7.1.1 → 7.1.4 | Pulled up by the
`http-proxy-agent`, `https-proxy-agent` update; older copy dropped |
| `anynum` | — → 1.0.1 | New dependency of updated `strnum` |
| `array-flatten` | 1.1.1 → removed | Removed: no longer used by updated
`express` |
| `arrify` | 2.0.1 → removed | Removed: no longer used by updated
`@google-cloud/paginator` |
| `asynckit` | 0.4.0 → removed | Removed along with `form-data` |
| `bignumber.js` | 9.1.2 → 9.3.1 | Updated within its range |
| `combined-stream` | 1.0.8 → removed | Removed along with `form-data` |
| `content-disposition` | 0.5.4 → 2.0.1 | Pulled up by the `express`
update |
| `content-type` | 1.0.5 → 2.1.0 | Pulled up by the `body-parser`,
`express`, `negotiator`, `type-is` update |
| `cookie-signature` | 1.0.6 → 1.2.2 | Pulled up by the `express` update
|
| `debug` | 2.6.9, 4.3.4 → 4.4.3 | Pulled up by the `body-parser`,
`express`, `finalhandler`, `http-proxy-agent`, `https-proxy-agent`,
`jwks-rsa`, `router`, `send` update; older copy dropped |
| `delayed-stream` | 1.0.0 → removed | Removed along with
`combined-stream` |
| `destroy` | 1.2.0 → removed | Removed: no longer used by updated
`body-parser`, `send` |
| `encodeurl` | 2.0.0 → 2.0.3 | Pulled up by the `express`,
`finalhandler`, `send`, `serve-static` update |
| `end-of-stream` | 1.4.4 → 1.4.5 | Updated within its range |
| `es-object-atoms` | 1.1.1 → 1.1.2 | Updated within its range |
| `es-set-tostringtag` | 2.1.0 → removed | Removed along with
`form-data` |
| `express` | 4.22.2 → 5.3.0 | Pulled up by the `firebase-functions`
update (7.x requires `express` ^5.2.1) |
| `farmhash-modern` | 1.1.0 → removed | Removed: no longer used by
updated `firebase-admin` |
| `fast-xml-builder` | 1.1.9 → 1.3.2 | Pulled up by the
`fast-xml-parser` update |
| `finalhandler` | 1.3.2 → 2.1.1 | Pulled up by the `express` update |
| `firebase-admin` | 13.10.0 → 14.5.1 | Direct dependency, major update
(see Notes) |
| `firebase-functions` | 6.6.0 → 7.4.0 | Direct dependency, major update
(see Notes) |
| `form-data` | 2.5.6 → removed | Removed along with `@types/request` |
| `fresh` | 0.5.2 → 2.0.0 | Pulled up by the `express`, `send` update |
| `gaxios` | 6.5.0, 7.1.5 → 7.3.1, 8.3.3 | Pulled up by the
`@google-cloud/storage`, `gcp-metadata`, `google-auth-library` update |
| `gcp-metadata` | 6.1.0, 8.1.2 → 9.2.3 | Pulled up by the
`google-auth-library` update; older copy dropped |
| `google-auth-library` | 10.7.0, 9.8.0 → 11.3.4 | Pulled up by the
`@google-cloud/storage`, `firebase-admin`, `google-gax` update; older
copy dropped |
| `google-gax` | 4.6.1 → 6.17.0 | Pulled up by the
`@google-cloud/firestore`, `@google-cloud/firestore-api` update |
| `google-logging-utils` | 1.1.3 → 2.2.0 | Pulled up by the
`gcp-metadata`, `google-auth-library`, `google-gax` update |
| `gtoken` | 7.1.0 → removed | Removed: no longer used by updated
`google-auth-library` |
| `has-tostringtag` | 1.0.2 → removed | Removed along with
`es-set-tostringtag` |
| `http-proxy-agent` | 5.0.0 → 7.0.2 | Pulled up by the `teeny-request`
update |
| `https-proxy-agent` | 5.0.1, 7.0.4 → 7.0.6 | Pulled up by the
`gaxios`, `teeny-request` update; older copy dropped |
| `iconv-lite` | 0.4.24 → 0.7.3 | Pulled up by the `body-parser`,
`raw-body` update |
| `is-promise` | — → 4.0.0 | New dependency of updated `router` |
| `is-stream` | 2.0.1 → removed | Removed: no longer used by updated
`gaxios` |
| `is-unsafe` | — → 2.0.3 | New dependency of updated `fast-xml-parser`
|
| `jose` | 4.15.9 → 6.2.19 | Pulled up by the `jwks-rsa` update |
| `jwks-rsa` | 3.2.2 → 4.1.0 | Pulled up by the `firebase-admin` update
|
| `lru-cache` | 6.0.0 → 11.5.4, 6.0.0 | 11.5.4 added for updated
`jwks-rsa`; 6.0.0 still used by `semver` |
| `lru-memoizer` | 2.3.0 → 3.0.0 | Pulled up by the `jwks-rsa` update |
| `media-typer` | 0.3.0 → 1.1.1 | Pulled up by the `type-is` update |
| `merge-descriptors` | 1.0.3 → 2.0.0 | Pulled up by the `express`
update |
| `methods` | 1.1.2 → removed | Removed: no longer used by updated
`express` |
| `mime` | 1.6.0, 3.0.0 → 3.0.0 | Pulled up by the
`@google-cloud/storage` update; older copy dropped |
| `mime-db` | 1.52.0 → 1.54.0 | Pulled up by the `mime-types` update |
| `mime-types` | 2.1.35 → 3.0.2 | Pulled up by the `accepts`, `express`,
`send`, `type-is` update |
| `ms` | 2.0.0, 2.1.2, 2.1.3 → 2.1.3 | Pulled up by the `debug`, `send`
update; older copy dropped |
| `negotiator` | 0.6.3 → 1.1.0 | Pulled up by the `accepts` update |
| `node-fetch` | 2.7.0, 3.3.2 → 3.3.2 | Pulled up by the `gaxios`,
`google-gax`, `teeny-request` update; older copy dropped |
| `object-inspect` | 1.13.4 → 1.14.0 | Pulled up by the `side-channel`,
`side-channel-list` update |
| `on-finished` | 2.4.1 → 2.4.2 | Pulled up by the `body-parser`,
`express`, `finalhandler`, `send` update |
| `path-expression-matcher` | 1.5.0 → 1.6.2 | Pulled up by the
`fast-xml-builder`, `fast-xml-parser` update |
| `path-to-regexp` | 0.1.13 → 8.4.2 | Pulled up by the `router` update |
| `proto3-json-serializer` | 2.0.2 → 4.1.0 | Pulled up by the
`google-gax` update |
| `range-parser` | 1.2.1 → 1.3.0 | Pulled up by the `express`, `send`
update |
| `raw-body` | 2.5.3 → 3.0.2 | Pulled up by the `body-parser` update |
| `retry-request` | 7.0.2 → 9.1.0 | Pulled up by the
`@google-cloud/storage`, `google-gax` update |
| `router` | — → 2.3.0 | New dependency of updated `express` |
| `send` | 0.19.2 → 1.2.1 | Pulled up by the `express`, `serve-static`
update |
| `serve-static` | 1.16.3 → 2.2.1 | Pulled up by the `express` update |
| `side-channel` | 1.1.0 → 1.1.1 | Pulled up by the `qs` update |
| `side-channel-list` | 1.0.0 → 1.0.1 | Pulled up by the `side-channel`
update |
| `string_decoder` | 1.3.0 → 1.4.0 | Updated within its range |
| `strnum` | 2.2.3 → 2.5.1 | Pulled up by the `fast-xml-parser` update |
| `teeny-request` | 9.0.0 → 11.1.1 | Pulled up by the
`@google-cloud/storage` update |
| `tr46` | 0.0.3 → removed | Removed along with `whatwg-url` |
| `type-is` | 1.6.18 → 2.1.0 | Pulled up by the `body-parser`, `express`
update |
| `typescript` | 4.9.5 → 5.9.3 | Direct dependency, major update needed
by `firebase-functions` 7 (see Notes) |
| `utils-merge` | 1.0.1 → removed | Removed: no longer used by updated
`express` |
| `webidl-conversions` | 3.0.1 → removed | Removed along with
`whatwg-url` |
| `websocket-extensions` | 0.1.4 → 0.3.0 | Pulled up by the
`websocket-driver` update |
| `whatwg-url` | 5.0.0 → removed | Removed along with `node-fetch` 2.7.0
|
| `xml-naming` | — → 0.3.1 | New dependency of updated
`fast-xml-builder`, `fast-xml-parser` |

## Notes

- Updated with in-range `npm update` and parent updates
(`firebase-functions`, `firebase-admin`), not `npm audit fix` (on
`firestore-bigquery-export` it downgraded `google-gax` 4.6.1 → 4.0.4 and
pulled in a critical `protobufjs`). No overrides.
- `package.json`: `firebase-admin` ^13.2.0 → ^14.5.1 (13.x pins
`@google-cloud/firestore` 7 / `@google-cloud/storage` 7, whose
`google-gax` 4, `gaxios` 6 and `teeny-request` 9 need `uuid` 9),
`firebase-functions` ^6.3.2 → ^7.4.0 (6.x doesn't accept
`firebase-admin` 14; 7.x moves `express` 4 → 5), and `typescript` ^4.9.4
→ ^5.9.3 (`firebase-functions` 7 ships TypeScript 5 types). Breaking
changes don't touch this extension: `firebase-functions` 7 drops Node 16
and `functions.config()` and renames the v1 `Event` type;
`firebase-admin` 14 drops Node 18/20, Instance ID, legacy FCM types and
the legacy namespace, and revamps error types. The extension only uses
`functions.database.ref().onCreate()` from `firebase-functions/v1` and
`logger`; every new package's `engines.node` allows the `nodejs22`
runtime (`jwks-rsa` 4 needs ≥ 22.12).
- Source change: `functions/tsconfig.json` adds `"skipLibCheck": true`
(as most other extensions in this repo already do), because
`firebase-functions` 7's `.d.ts` files default-import `cors`, which
fails type-checking without `esModuleInterop`. The compiled `lib/` is
byte-for-byte the same as before the change, and the deployed trigger
(event type, resource path, retry) is unchanged.
- The Realtime Database client (`@firebase/database-compat` 2.1.4) is
unchanged. Loading the function now also loads `google-gax` and
`@grpc/grpc-js` (from `@google-cloud/firestore` 9), so module load at
cold start went from about 93 ms to 155 ms locally.
- An `uuid` override on the old `firebase-admin` 13 /
`firebase-functions` 6 would be a smaller change, but parent updates
come first and needed no source changes.
- Version and CHANGELOG left for the next release.

## Testing

| Check | Result |
|---|---|
| Build | ✅ (`npm ci` from the new lockfile, `npm run build`, and
`lib/index.js` loads) |
| Unit tests | ➖ No tests (placeholder script) |
| Production `npm audit` | ✅ 16 → 0, no new advisories, no downgrades |
| Live smoke test | ❌ FAIL (2 regressions, performance only) |

### Smoke test

Deployed the extension's functions before (`490b13b`) and after
(`eead9ed`) the change side by side on a test project, as plain Cloud
Functions built from each lockfile, and ran the same 16 checks on both,
covering every function, the code that uses the updated packages, and
the risks from their changelogs. Behaviour (data, log text, severities,
trigger and runtime settings) is identical; the only regressions are
slower cold starts and higher memory, because `@google-cloud/firestore`
9 now loads `google-gax` and `@grpc/grpc-js` when
`firebase-functions/v1` is loaded.

| Area | Checks | Same | Differs | Not tested |
|---|---|---|---|---|
| Deploy and runtime settings | 3 | 2 | 1 | 0 |
| Functions (normal and error input) | 2 | 2 | 0 | 0 |
| Updated packages (code paths and changelog risks) | 10 | 7 | 3 | 0 |
| Logs and severity | 1 | 1 | 0 | 0 |
| **Total** | **16** | **12** | **4** | **0** |

**Differences**

| ID | Check | Before | After | Verdict |
|---|---|---|---|---|
| d8 | Cold start: write → module-load log on fresh instances (median,
256 MB Gen1) | 4472 ms / 4364 ms (2 runs) | 5709 ms / 5099 ms (+0.7–1.2
s) | Regression |
| d8 | Memory per instance (Cloud Monitoring mean) | 93.4 MB | 111.5 MB
(+18 MB) | Regression |
| d8 | Local module load (`require`) | 109–115 ms, 44 packages | 178–185
ms, 64 packages | Regression (same cause) |
| d6 | Execution time reading a ~3.6 MB parent | 7234 / 8854 ms (2 runs)
| 8410 / 6162 ms | Flaky (both sides) |
| d7 | Warm execution time in a 100-write burst (median) | 13 / 77 ms (2
runs) | 86 / 65 ms | Flaky (both sides) |
| a1 | Deploy warnings and build `npm audit` | CLI warns
`firebase-functions` is outdated; 16 vulnerabilities | No warning; 0
vulnerabilities | Improvement |
@CorieW
CorieW requested a review from a team as a code owner December 3, 2026 12:00

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces deprecation notices for the firestore-bigquery-export extension, adds copyright headers across multiple files, and updates several dependencies. Key functional changes include improving BigQuery insert retry logic to handle schema lag and transient errors, and enhancing security in the firestore-send-email extension by validating email attachments to prevent local file exfiltration and SSRF. Feedback on the security changes highlights that the URL validation should restrict loopback and private IP ranges to fully prevent SSRF, and recommends adding the metadata header to the restricted headers list to protect Azure environments.

## Description

The vulnerable-dependency fixes going out in the release PR (#3367)
didn't bump extension versions or add changelog entries. This adds them.

## Changes

**Version bumped + new changelog entry** (no unreleased version yet):

| Extension | Version |
| --- | --- |
| `delete-user-data` | 0.1.30 → 0.1.31 |
| `firestore-counter` | 0.2.17 → 0.2.18 |
| `firestore-shorten-urls-bitly` | 0.2.6 → 0.2.7 |
| `firestore-translate-text` | 0.1.30 → 0.1.31 |
| `rtdb-limit-child-nodes` | 0.1.20 → 0.1.21 |

**Line added to the existing unreleased version** (already bumped on
`next`, not yet on `master`):

- `firestore-bigquery-export` 0.3.4
- `firestore-send-email` 0.2.11 (also logs the attachment validation fix
from #3344)
- `storage-resize-images` 0.3.7
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

5 similar comments
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Comment thread .github/workflows/release-kit.yaml Resolved
working-directory: ${{ inputs.target_kit }}
env:
USE_FIREBASE_FUNCTIONS_RC: ${{ inputs.use_firebase_functions_rc }}
run: |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is worth fixing, since the release job holds both the push token and the npm publish token. Adding --ignore-scripts to the npm ci calls (and to the firebase-functions@next installs) should cover it.

I checked all 13 kits on the kits branch with npm ci --ignore-scripts, and every one builds and passes its tests. The only install scripts in the dependency tree (@firebase/util, protobufjs, esbuild, @google/genai) are not needed for the build.

Comment thread .github/workflows/test.yml Resolved
working-directory: ${{ inputs.target_kit }}
env:
USE_FIREBASE_FUNCTIONS_RC: ${{ inputs.use_firebase_functions_rc }}
run: |
# version ever published (even after unpublish), and package.json on the
# branch can lag behind what was actually released.
NPM_CONFIG_REGISTRY: https://registry.npmjs.org
run: |
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.4.0.tgz",
"integrity": "sha512-LarFH0+6VfriEhqMMcLX2F7SwSXeWwnEAJEsYm5QKWchiVYVvJyV9v7UDvUv+w5HO23ZpQTXDv/GxdDdMyOuoQ==",
"version": "1.4.4",
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.4.0.tgz",
"integrity": "sha512-LarFH0+6VfriEhqMMcLX2F7SwSXeWwnEAJEsYm5QKWchiVYVvJyV9v7UDvUv+w5HO23ZpQTXDv/GxdDdMyOuoQ==",
"version": "1.4.4",
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.4.0.tgz",
"integrity": "sha512-LarFH0+6VfriEhqMMcLX2F7SwSXeWwnEAJEsYm5QKWchiVYVvJyV9v7UDvUv+w5HO23ZpQTXDv/GxdDdMyOuoQ==",
"version": "1.4.4",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants