@graphql-tools/utils
13.2.2 · 10 Nov 2026MIT57M / weekRepositoryHomepagenpmAtom feed
12.1.0 is the newest release of 12.x.
In short
1 security1 new3 fixed
Security
Fixes 1 advisory that affected 12.0.0
- HighGraphQL Tools has prototype pollution in well-established utility function `mergeDeep`GHSA-7mx3-vvmw-hjmv · 5 Oct 2026Fixed in 12.0.1
1 advisory affects 12.0.1; 12.0.2 fixes them
- HighGraphQL Tools: Prototype pollution in mergeIncrementalResult via non-primitive path segmentsGHSA-c4qx-w738-7hr3 · 22 Oct 2026Fixed in 12.0.2
Release note
The section about @graphql-tools/utils of a note shared by several packages.
Patch Changes
Omit mutation/subscription from
printSchemaWithDirectiveswhen those root types are no longer present on the schema (e.g. afterpruneSchema).Allow
%in paths checked byisValidPath(e.g. directories from URL-encoded repo names).Clean up
observableToAsyncIterablequeues and unsubscribe when the observable completes, so iterators do not retain references afterdone. Fixes leak detection flakes related to #8057.Prefer runtime
descriptionvalues over staleastNodedescriptions inprintSchemaWithDirectives/getDescriptionNode. Fixes #5508.- Security
Fix prototype pollution in
mergeDeepSource keys named
__proto__,constructororprototypeare now skipped at every recursion level, and the check for an existing key useshasOwnPropertyinstead ofin, so inherited properties are never used as merge targets.Previously, merging untrusted data such as
JSON.parse('{"constructor":{"__proto__":{"call":"x"}}}')could reach and overwrite properties onObject.prototypeorFunction.prototype.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.