# GHSA-25gq-jvx2-vg9x: Silverstripe X-Forwarded-Host request hostname injection

- Severity: High 7.2 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-05-23T16:59:25.000Z
- Modified: 2024-11-28T05:40:39.913Z
- Weaknesses: CWE-601

## Description

A potential hostname injection vulnerability has been found which could allow attackers to alter url resolution.

If a request contains the X-Forwarded-Host HTTP header a website would then use its value in place of the actual HTTP hostname. In cases where caching is enabled, this could allow an attacker to potentially embed a remote url as the base_url for any site. This would then cause other visitors to the site to be redirected unknowingly.

This header is necessary for servers running behind a reverse proxy (such as nginx). Such servers are likely not vulnerable to this risk.

A fix has been merged into the default installer, although existing projects which do not run behind a reverse proxy should update their htaccess as below:
```
<IfModule mod_headers.c>
    # Remove X-Forwarded-Host header sent as a part of any request from the web
    RequestHeader unset X-Forwarded-Host
</IfModule>
```

(As written by GitHub Advisory Database.)

## Affected

- silverstripe/framework (Packagist): from 3.1.0 before 3.1.13

## References

- <https://github.com/silverstripe/silverstripe-framework/commit/75137dbab28c0efd28b07e50044a50c5af4e46aa> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2015-013-1.yaml> (web)
- <https://github.com/silverstripe/silverstripe-framework> (package)
- <https://www.silverstripe.org/software/download/security-releases/ss-2015-013> (web)

## Sources

- GitHub Advisory Database: [GHSA-25gq-jvx2-vg9x](https://github.com/advisories/GHSA-25gq-jvx2-vg9x), CC-BY-4.0, modified 2024-11-28

---

Page: https://cve.day/GHSA-25gq-jvx2-vg9x · Whole record: https://cve.day/GHSA-25gq-jvx2-vg9x.json · Rebuilt by cve.day 2026-11-25T22:56:30.688Z
