We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
BodyConverter
This regular expression is vulnerable for ReDoS due P complexity
const [mime]: string[] = contentType .split(',') .map((x) => x.trim().replace(/;.+?$/, ''));
Prevent the ReDoS or refuse to use the regexp in this particular case.
Please refer to the source code at BodyConverter.ts#L60-L63
The text was updated successfully, but these errors were encountered:
refactor(oas): get rid of regexp in BodyConverter
954b170
closes #218
fix(oas): prevent ReDoS in the BodyConverter (#219)
30eb0e4
ostridm
Successfully merging a pull request may close this issue.
This regular expression is vulnerable for ReDoS due P complexity
Prevent the ReDoS or refuse to use the regexp in this particular case.
Please refer to the source code at BodyConverter.ts#L60-L63
The text was updated successfully, but these errors were encountered: