[Fix] Enhanced security for OpenAPI and JSON Loader Integration (#1122)

This commit is contained in:
YusukeJustinNakajima
2024-01-08 14:37:03 +09:00
committed by GitHub
parent 1878f8d4fc
commit f7696d1dc1
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ class JSONReader:
return ["\n".join(useful_lines)]
VALID_URL_PATTERN = "^https:\/\/[0-9A-z.]+.[0-9A-z.]+.[a-z]+\/.*\.json$"
VALID_URL_PATTERN = "^https:\/\/[0-9A-Za-z]+(\.[0-9A-Za-z]+)*\/[0-9A-Za-z_\/]*\.json$"
class JSONLoader(BaseLoader):