CVE-2026-40991

Source
https://cve.org/CVERecord?id=CVE-2026-40991
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40991.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-40991
Downstream
Published
2026-06-09T23:46:33.676Z
Modified
2026-07-19T03:46:43.133942424Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:L CVSS Calculator
Summary
XML External Entity (XXE) injection when documenting untrusted XML content
Details

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.

Database specific
{
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "introduced": "4.0.0"
                },
                {
                    "fixed": "4.0.0.1"
                },
                {
                    "introduced": "3.0.0"
                },
                {
                    "fixed": "3.0.5.1"
                },
                {
                    "introduced": "2.0.0.RELEASE"
                },
                {
                    "fixed": "2.0.9.RELEASE"
                }
            ],
            "source": "AFFECTED_FIELD"
        },
        {
            "extracted_events": [
                {
                    "introduced": "3.0.0"
                },
                {
                    "fixed": "3.0.5"
                },
                {
                    "introduced": "2.0.0.RELEASE"
                },
                {
                    "fixed": "2.0.8.RELEASE"
                }
            ],
            "source": "DESCRIPTION"
        }
    ],
    "cwe_ids": [
        "CWE-611"
    ],
    "cna_assigner": "vmware",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40991.json"
}
References

Affected packages

Git / github.com/spring-projects/spring-restdocs

Affected ranges

Type
GIT
Repo
https://github.com/spring-projects/spring-restdocs
Events
Database specific
{
    "cpe": "cpe:2.3:a:broadcom:spring_rest_docs:4.0.0:-:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "4.0.0-NA"
        },
        {
            "last_affected": "4.0.0-NA"
        }
    ],
    "source": "CPE_STRING"
}

Affected versions

4.*
4.0.0-NA
v4.*
v4.0.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40991.json"