CVE Explorer
CVE-2026-40991
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"defaultStatus":"unaffected","product":"Spring REST Docs","vendor":"Spring","versions":[{"lessThan":"4.0.0.1","status":"affected","version":"4.0.0","versionType":"custom"},{"lessThan":"3.0.5.1","status":"affected","version":"3.0.0","versionType":"custom"},{"lessThan":"2.0.9.RELEASE","status":"affected","version":"2.0.0.RELEASE","versionType":"custom"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:0ff7e061452ab483cfee4f5a53d34e5497d5d168ebc53b0befab65965ea6610a · sha256:44b32ae4701e9717… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":5.9,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:0ff7e061452ab483cfee4f5a53d34e5497d5d168ebc53b0befab65965ea6610a · sha256:44b32ae4701e9717… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-611","description":"CWE-611: Improper Restriction of XML External Entity Reference","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0ff7e061452ab483cfee4f5a53d34e5497d5d168ebc53b0befab65965ea6610a · sha256:44b32ae4701e9717… · /containers/cna/problemTypes/0/descriptions/0
Source references
1 source assertion{"url":"https://spring.io/security/cve-2026-40991"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0ff7e061452ab483cfee4f5a53d34e5497d5d168ebc53b0befab65965ea6610a · sha256:44b32ae4701e9717… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.