GHSA-7m5c-fgwf-mwph

Suggest an improvement
Source
https://github.com/advisories/GHSA-7m5c-fgwf-mwph
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/07/GHSA-7m5c-fgwf-mwph/GHSA-7m5c-fgwf-mwph.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7m5c-fgwf-mwph
Aliases
Published
2023-07-17T12:30:32Z
Modified
2024-02-16T08:15:52.958371Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
Spring HATEOAS vulnerable to Improper Neutralization of HTTP Headers for Scripting Syntax
Details

Reactive web applications that use Spring HATEOAS to produce hypermedia-based responses might be exposed to malicious forwarded headers if they are not behind a trusted proxy that ensures correctness of such headers, or if they don't have anything else in place to handle (and possibly discard) forwarded headers either in WebFlux or at the level of the underlying HTTP server.

For the application to be affected, it needs to satisfy the following requirements:

  • It needs to use the reactive web stack (Spring WebFlux) and Spring HATEOAS to create links in hypermedia-based responses.
  • The application infrastructure does not guard against clients submitting (X-)Forwarded… headers.
Database specific
{
    "nvd_published_at": "2023-07-17T11:15:09Z",
    "cwe_ids": [
        "CWE-116",
        "CWE-644"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-07-17T14:10:24Z"
}
References

Affected packages

Maven / org.springframework.hateoas:spring-hateoas

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.5.5

Affected versions

0.*

0.0.0.1.1.4.TEST-RELEASE
0.0.0.1.2.3-SNAPSHOT.1
0.0.0.1.3.0-HATEOAS-1417-SNAPSHOT.1
0.1.0.RELEASE
0.2.0.RELEASE
0.3.0.RELEASE
0.4.0.RELEASE
0.5.0.RELEASE
0.6.0.RELEASE
0.7.0.RELEASE
0.8.0.RELEASE
0.9.0.RELEASE
0.10.0.RELEASE
0.11.0.RELEASE
0.12.0.RELEASE
0.13.0.RELEASE
0.14.0.RELEASE
0.15.0.RELEASE
0.16.0.RELEASE
0.17.0.RELEASE
0.18.0.RELEASE
0.19.0.RELEASE
0.20.0.RELEASE
0.21.0.RELEASE
0.22.0.RELEASE
0.23.0.RELEASE
0.24.0.RELEASE
0.25.0.RELEASE
0.25.1.RELEASE
0.25.2.RELEASE

1.*

1.0.0.RELEASE
1.0.1.RELEASE
1.0.2.RELEASE
1.0.3.RELEASE
1.0.4.RELEASE
1.0.5.RELEASE
1.1.0.RELEASE
1.1.1.RELEASE
1.1.2.RELEASE
1.1.3.RELEASE
1.1.4.RELEASE
1.1.5.RELEASE
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
1.2.5
1.2.6
1.2.7
1.2.8
1.2.9
1.2.10
1.2.11
1.3.0
1.3.1
1.3.2
1.3.3
1.3.4
1.3.5
1.3.6
1.3.7
1.4.0
1.4.1
1.4.2
1.4.3
1.4.4
1.4.5
1.5.0
1.5.1
1.5.2
1.5.3
1.5.4

Maven / org.springframework.hateoas:spring-hateoas

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.0.5

Affected versions

2.*

2.0.0
2.0.1
2.0.2
2.0.3
2.0.4

Maven / org.springframework.hateoas:spring-hateoas

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.1.0
Fixed
2.1.1

Affected versions

2.*

2.1.0