Intel

AIKIDO-2024-10306

@trojs/openapi-server is vulnerable to DoS

DoS Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 1, 2024

76

High Risk

This Affects:

js@trojs/openapi-server
0.1.0 - 1.2.5
Fixed in 1.3.0
2.0.0 - 2.0.1
Fixed in 2.0.2
Are you affected? Scan for Free

TL;DR

Affected versions of the package are vulnerable to Denial of Service (DoS) with large JSON payloads because the maximumBodySize parameter is not set for JSON parsing.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@trojs/openapi-server is vulnerable to DoS in versions 0.1.0 - 1.2.5 and 2.0.0 - 2.0.1.

How to fix this

Upgrade the @trojs/openapi-server library to the patch version.