Description
API servers running express-zod-api having:
- version of
express-zod-apibelow10.0.0-beta1, - and using the following (or similar) validation schema in its implementation:
z.string().email(),
are vulnerable to a DoS attack due to:
- Inefficient Regular Expression Complexity in
zodversions up to3.22.2, - depending on
zod.
Recommendation
Update the express-zod-api package to the latest compatible version. Followings are version details:
- Affected version(s): < 10.0.0-beta1
- Patched version(s): 10.0.0-beta1
References
Related Issues
- Regular Expression Denial of Service (ReDoS) - Vulnerability
- Regular Expression Denial of Service in markdown - Vulnerability
- Denial of Service in apostrophe - Vulnerability
- Regular Expression Denial of Service in millisecond - Vulnerability
- Tags:
- npm
- express-zod-api
Anything's wrong? Let us know Last updated on October 04, 2023