Skip to content

Commit 904ac5c

Browse files
glowcloudchar0n
andauthored
fix(security): fix polynomial regular expression (#3502)
Refs #3501 --------- Co-authored-by: Vladimír Gorej <vladimir.gorej@gmail.com>
1 parent fc997c1 commit 904ac5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/execute/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ function buildOas3UrlWithContext(ourUrl = '', contextUrl = '') {
390390

391391
function getVariableTemplateNames(str) {
392392
const results = [];
393-
const re = /{([^}]+)}/g;
393+
const re = /{([^}]{1,29})}/g;
394394
let text;
395395

396396
// eslint-disable-next-line no-cond-assign

0 commit comments

Comments
 (0)