Intel

AIKIDO-2026-371771

springdoc-openapi-starter-common is vulnerable to Uncontrolled Resource Consumption

Uncontrolled Resource ConsumptionGHSA-rhhx-6j8h-8cvw Published Yesterday

75

High Risk

This Affects:

JAVAspringdoc-openapi-starter-common
2.0.0 - 2.9.0
Fixed in 2.9.1
3.0.0 - 3.1.0
Fixed in 3.1.1
Are you affected? Scan for Free

TL;DR

The OpenAPIService caches generated OpenAPI documents in a map keyed by request locale, and the locale derives from the client supplied Accept-Language header. Requesting /v3/api-docs with many distinct language tags fills the cache with fully materialized documents without any bound, and a related append-only growth affects @ControllerAdvice handling. This exhausts the heap and triggers an OutOfMemoryError. The patch bounds the cache with an access-ordered LRU limited by springdoc.cache.max-entries.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your /v3/api-docs endpoint is reachable by clients that can vary the Accept-Language header.

Background info

springdoc-openapi-starter-common is vulnerable to Uncontrolled Resource Consumption in versions 2.0.0 - 2.9.0 and 3.0.0 - 3.1.0.

How to fix this

Upgrade the springdoc-openapi-starter-common library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform