From 904ac5cd42e7e184eb088616acc29572a0cf61f6 Mon Sep 17 00:00:00 2001 From: Oliwia Rogala Date: Wed, 8 May 2024 16:45:09 +0200 Subject: [PATCH] fix(security): fix polynomial regular expression (#3502) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #3501 --------- Co-authored-by: VladimĂ­r Gorej --- src/execute/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/execute/index.js b/src/execute/index.js index b97d8a91e..9610fc118 100755 --- a/src/execute/index.js +++ b/src/execute/index.js @@ -390,7 +390,7 @@ function buildOas3UrlWithContext(ourUrl = '', contextUrl = '') { function getVariableTemplateNames(str) { const results = []; - const re = /{([^}]+)}/g; + const re = /{([^}]{1,29})}/g; let text; // eslint-disable-next-line no-cond-assign