Intel

AIKIDO-2026-454912

springdoc-openapi-starter-webflux-scalar is vulnerable to Race Condition

Race ConditionGHSA-c925-vm88-mpp9 Published Yesterday

47

Medium Risk

This Affects:

JAVAspringdoc-openapi-starter-webflux-scalar
2.8.13 - 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 Scalar starters register forwarded-header handling application-wide, so the whole application trusts client supplied X-Forwarded-* headers and becomes susceptible to host-header poisoning of links, redirects, and generated URLs. The Scalar controller also writes per request state, such as the api-docs URL, into a shared singleton bean, so under concurrency one caller's page can be rendered with another caller's configuration. The patch stops registering global forwarded-header handling and renders Scalar from request-local state.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use a Scalar starter behind a proxy or serving concurrent requests.

Background info

springdoc-openapi-starter-webflux-scalar is vulnerable to Race Condition in versions 2.8.13 - 2.9.0 and 3.0.0 - 3.1.0.

How to fix this

Upgrade the springdoc-openapi-starter-webflux-scalar and/or the org.springdoc:springdoc-openapi-starter-webmvc-scalar 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