GHSA-6rpq-6vv2-5222

Suggest an improvement
Source
https://github.com/advisories/GHSA-6rpq-6vv2-5222
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-6rpq-6vv2-5222/GHSA-6rpq-6vv2-5222.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6rpq-6vv2-5222
Aliases
Published
2026-06-10T00:31:51Z
Modified
2026-08-12T15:41:04Z
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
Spring REST Docs REST Assured & WebFlux are vulnerable to Improper Restriction of XML External Entity Reference
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
{
    "cwe_ids":  [
        "CWE-611"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-08-12T15:26:08Z",
    "nvd_published_at":  "2026-06-10T00:16:50Z",
    "severity":  "MODERATE"
}
References

Affected packages

Maven
org.springframework.restdocs:spring-restdocs-webtestclient

Package

Name
org.springframework.restdocs:spring-restdocs-webtestclient
View open source insights on deps.dev
Purl
pkg:maven/org.springframework.restdocs/spring-restdocs-webtestclient

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.0.0
Fixed
4.0.1

Affected versions

4.*
4.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-6rpq-6vv2-5222/GHSA-6rpq-6vv2-5222.json"
org.springframework.restdocs:spring-restdocs-webtestclient

Package

Name
org.springframework.restdocs:spring-restdocs-webtestclient
View open source insights on deps.dev
Purl
pkg:maven/org.springframework.restdocs/spring-restdocs-webtestclient

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.0.0
Fixed
3.0.6

Affected versions

3.*
3.0.0
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5

Database specific

last_known_affected_version_range
"<= 3.0.5"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-6rpq-6vv2-5222/GHSA-6rpq-6vv2-5222.json"
org.springframework.restdocs:spring-restdocs-webtestclient

Package

Name
org.springframework.restdocs:spring-restdocs-webtestclient
View open source insights on deps.dev
Purl
pkg:maven/org.springframework.restdocs/spring-restdocs-webtestclient

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
2.0.8.RELEASE

Affected versions

2.*
2.0.0.RELEASE
2.0.1.RELEASE
2.0.2.RELEASE
2.0.3.RELEASE
2.0.4.RELEASE
2.0.5.RELEASE
2.0.6.RELEASE
2.0.7.RELEASE
2.0.8.RELEASE

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-6rpq-6vv2-5222/GHSA-6rpq-6vv2-5222.json"
org.springframework.restdocs:spring-restdocs-restassured

Package

Name
org.springframework.restdocs:spring-restdocs-restassured
View open source insights on deps.dev
Purl
pkg:maven/org.springframework.restdocs/spring-restdocs-restassured

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.0.0
Fixed
4.0.1

Affected versions

4.*
4.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-6rpq-6vv2-5222/GHSA-6rpq-6vv2-5222.json"
org.springframework.restdocs:spring-restdocs-restassured

Package

Name
org.springframework.restdocs:spring-restdocs-restassured
View open source insights on deps.dev
Purl
pkg:maven/org.springframework.restdocs/spring-restdocs-restassured

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.0.0
Fixed
3.0.6

Affected versions

3.*
3.0.0
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5

Database specific

last_known_affected_version_range
"<= 3.0.5"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-6rpq-6vv2-5222/GHSA-6rpq-6vv2-5222.json"
org.springframework.restdocs:spring-restdocs-restassured

Package

Name
org.springframework.restdocs:spring-restdocs-restassured
View open source insights on deps.dev
Purl
pkg:maven/org.springframework.restdocs/spring-restdocs-restassured

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
2.0.8.RELEASE

Affected versions

1.*
1.1.0.RELEASE
1.1.1.RELEASE
1.1.2.RELEASE
1.1.3.RELEASE
1.2.0.RELEASE
1.2.1.RELEASE
1.2.2.RELEASE
1.2.3.RELEASE
1.2.4.RELEASE
1.2.5.RELEASE
1.2.6.RELEASE
2.*
2.0.0.RELEASE
2.0.1.RELEASE
2.0.2.RELEASE
2.0.3.RELEASE
2.0.4.RELEASE
2.0.5.RELEASE
2.0.6.RELEASE
2.0.7.RELEASE
2.0.8.RELEASE

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-6rpq-6vv2-5222/GHSA-6rpq-6vv2-5222.json"