From 76444adff722ff037d47a2d4b66bb3bfa002270a Mon Sep 17 00:00:00 2001 From: enisdenjo Date: Fri, 12 Apr 2024 19:25:20 +0200 Subject: [PATCH] changeset --- .changeset/spotty-kiwis-crash.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .changeset/spotty-kiwis-crash.md diff --git a/.changeset/spotty-kiwis-crash.md b/.changeset/spotty-kiwis-crash.md new file mode 100644 index 00000000000..73eeb274e0d --- /dev/null +++ b/.changeset/spotty-kiwis-crash.md @@ -0,0 +1,10 @@ +--- +"@graphql-tools/utils": patch +--- + +Disallow new lines in paths when checking with `isValidPath` + +A string may sometimes look like a path but is not (like an SDL of a simple +GraphQL schema). To make sure we don't yield false-positives in such cases, +we disallow new lines in paths (even thouhg most Unix systems support new +lines in file names).