Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape regular expressions with values passed by the user #3505

Closed
glowcloud opened this issue May 8, 2024 · 1 comment
Closed

Escape regular expressions with values passed by the user #3505

glowcloud opened this issue May 8, 2024 · 1 comment

Comments

@glowcloud
Copy link
Contributor

We need to escape regular expressions which are built with values passed by the user:

const re = new RegExp(`{${variable}}`, 'g');

For this, we can use escapeRegExp function from the ramda-adjunct library.

@glowcloud glowcloud self-assigned this May 8, 2024
glowcloud added a commit that referenced this issue May 8, 2024
swagger-bot pushed a commit that referenced this issue May 8, 2024
## [3.27.5](v3.27.4...v3.27.5) (2024-05-08)

### Bug Fixes

* **security:** escape regular expression created from user input ([#3506](#3506)) ([013edf9](013edf9)), closes [#3505](#3505)
@char0n char0n closed this as completed May 8, 2024
@char0n
Copy link
Member

char0n commented May 8, 2024

Addressed in #3506

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants