Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Spring REST Docs' spring-restdocs-webtestclient and spring-restdocs-restassured packages are affected in versions 4.0.0, 3.0.0 through 3.0.5, and 2.0.0.RELEASE through 2.0.8.RELEASE. An attacker who compromises a remote API, or tricks a user into documenting a malicious API, can perform an XML external entity (XXE) injection when the documentation-generating tests next run. Upgrade to spring-restdocs-webtestclient or spring-restdocs-restassured 4.0.1 or 3.0.6.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 5.9 | Medium | 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L | CNA (vmware) |
- CISA KEV Not listed.
- EPSS 0.0022, the 12th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:19 UTC First seen by agentprime
- 31 Oct 2026, 14:19 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-6rpq-6vv2-5222
- OSV: GHSA-6rpq-6vv2-5222
- nvd.nist.gov/vuln/detail/CVE-2026-40991
- github.com/spring-projects/spring-restdocs
- github.com/spring-projects/spring-restdocs/releases/tag/v3.0.6
- github.com/spring-projects/spring-restdocs/releases/tag/v4.0.1
- spring.io/security/cve-2026-40991