From e0645f376b03e31e342a6d3fb749a335f0840d1b Mon Sep 17 00:00:00 2001 From: cflmy Date: Wed, 25 Nov 2026 11:40:22 +0800 Subject: [PATCH] schema: allow legal path characters and reject only real traversal Accept a double dot inside a file name and '::' in a module path; reject only an absolute, drive, UNC or backslash path, duplicate separators, and '.'/'..' path segments. This matches the loader and avoids over-rejecting legal files. --- spec/schemas/analysis.schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/schemas/analysis.schema.json b/spec/schemas/analysis.schema.json index 2619c8d..3f2f152 100644 --- a/spec/schemas/analysis.schema.json +++ b/spec/schemas/analysis.schema.json @@ -137,7 +137,7 @@ "relative_path": { "type": "string", "minLength": 1, - "pattern": "^(?!/)(?!.*::)(?!.*(^|/)\\.\\.?(/|$))(?![A-Za-z]:)(?!.*\\\\)(?!.*//).*$" + "pattern": "^(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*//)(?!.*(?:^|/)\\.\\.?(?:/|$)).*$" }, "source_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"}, "source": {"type": "string"},