Skip to content

Prevent possible DoS via polynomial regex#583

Merged
fairclothjm merged 1 commit intomainfrom
VAULT-37069/sec-vuln-polynomial-regex
Jun 13, 2025
Merged

Prevent possible DoS via polynomial regex#583
fairclothjm merged 1 commit intomainfrom
VAULT-37069/sec-vuln-polynomial-regex

Conversation

@fairclothjm
Copy link
Copy Markdown
Collaborator

Description

A regular expression that can require polynomial time to match may be vulnerable to denial-of-service attacks. To prevent this, we use the builtin String.prototype.includes().

@fairclothjm fairclothjm requested a review from a team as a code owner June 12, 2025 22:03
@fairclothjm
Copy link
Copy Markdown
Collaborator Author

Enterprise tests failed, I think we need to update the Vault License in the GH secret

Copy link
Copy Markdown

@sapleu-hc sapleu-hc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@fairclothjm fairclothjm merged commit 8ab17d8 into main Jun 13, 2025
11 of 12 checks passed
@fairclothjm fairclothjm deleted the VAULT-37069/sec-vuln-polynomial-regex branch June 13, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants