Prevent possible DoS via polynomial regex (#583)

This commit is contained in:
John-Michael Faircloth
2025-06-13 09:17:23 -05:00
committed by GitHub
parent b022ecdb0c
commit 8ab17d80fa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -19271,7 +19271,7 @@ const selectAndAppendResults = async (
secretRequest,
results
) => {
if (!selector.match(/.*[\.].*/)) {
if (!selector.includes(".")) {
selector = '"' + selector + '"';
}
selector = "data." + selector;