{"id":"GHSA-25gq-jvx2-vg9x","aliases":["GHSA-25gq-jvx2-vg9x"],"related":[],"kind":"vulnerability","state":"published","title":"Silverstripe X-Forwarded-Host request hostname injection","summary":"A potential hostname injection vulnerability has been found which could allow attackers to alter url resolution.\n\nIf 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.\n\nThis header is necessary for servers running behind a reverse proxy (such as nginx). Such servers are likely not vulnerable to this risk.\n\nA 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:\n```\n<IfModule mod_headers.c>\n    # Remove X-Forwarded-Host header sent as a part of any request from the web\n    RequestHeader unset X-Forwarded-Host\n</IfModule>\n```","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"A potential hostname injection vulnerability has been found which could allow attackers to alter url resolution.\n\nIf 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.\n\nThis header is necessary for servers running behind a reverse proxy (such as nginx). Such servers are likely not vulnerable to this risk.\n\nA 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:\n```\n<IfModule mod_headers.c>\n    # Remove X-Forwarded-Host header sent as a part of any request from the web\n    RequestHeader unset X-Forwarded-Host\n</IfModule>\n```","format":"markdown","source":"ghsa"}],"published":"2024-05-23T16:59:25.000Z","modified":"2024-11-28T05:40:39.913Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"3.1.0","status":"affected","fixed":"3.1.13"}],"ecosystem":"Packagist","package":"silverstripe/framework","purl":"pkg:composer/silverstripe/framework","source":"ghsa"}],"references":[{"url":"https://github.com/silverstripe/silverstripe-framework/commit/75137dbab28c0efd28b07e50044a50c5af4e46aa","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2015-013-1.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/silverstripe/silverstripe-framework","tags":["package"],"sources":["ghsa"]},{"url":"https://www.silverstripe.org/software/download/security-releases/ss-2015-013","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-25gq-jvx2-vg9x","url":"https://github.com/advisories/GHSA-25gq-jvx2-vg9x","licence":"CC-BY-4.0","modified":"2024-11-28T05:40:39.913Z"}],"updatedAt":"2026-11-25T22:56:30.688Z"}