CVE-2026-40991Broadcom Spring Rest Docs
Medium 5.9 No auth needed
Follow: this CVE · Broadcom · Broadcom Spring Rest Docs We alert you by email or Slack (account required).
- Priority
- 50
- CVSS 3.1
- 5.9
- EPSS
- —
- Auth required
- No
- Published
- Jun 10, 2026
- Updated
- Jul 23, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-611
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L
What happens
When using spring-restdocs-webtestclient or spring-restdocs-restassured to document a remote API accessed over HTTP, an attacker who compromises the API or tricks the user into documenting a malicious API can perform an XXE injection attack when the documentation-generating tests are next executed.
Affected versions:
Spring REST Docs 4.0.0; 3.0.0 through 3.0.5; 2.0.0.RELEASE through 2.0.8.RELEASE.
What to do
- Apply the vendor's security update for Spring Rest Docs.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.springframework.restdocs:spring-restdocs-restassured |
≥ 4.0.0 < 4.0.1 |
4.0.1 |
— |
| Maven | org.springframework.restdocs:spring-restdocs-restassured |
≥ 3.0.0 < 3.0.6 |
3.0.6 |
— |
| Maven | org.springframework.restdocs:spring-restdocs-restassured |
≤ 2.0.8.RELEASE |
no fixed version | — |
| Maven | org.springframework.restdocs:spring-restdocs-webtestclient |
≥ 4.0.0 < 4.0.1 |
4.0.1 |
— |
| Maven | org.springframework.restdocs:spring-restdocs-webtestclient |
≥ 3.0.0 < 3.0.6 |
3.0.6 |
— |
| Maven | org.springframework.restdocs:spring-restdocs-webtestclient |
≤ 2.0.8.RELEASE |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-6rpq-6vv2-5222). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| broadcom | spring_rest_docs | ≥ 2.0.0 < 2.0.9 |
| broadcom | spring_rest_docs | ≥ 3.0.0 < 3.0.5.1 |
| broadcom | spring_rest_docs | 4.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- spring.io Vendor Advisory