{"answers":{"affected":"2 open source packages ship an affected version, including silverstripe/framework.","exploited":"There is no known exploitation of GHSA-25gq-jvx2-vg9x in the wild and no public exploit code.","fix":"Upgrade silverstripe/framework to 3.1.13 or later.","what":"GHSA-25gq-jvx2-vg9x is a vulnerability in silverstripe/framework, published on 23 May 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-25gq-jvx2-vg9x and fix it if it is affected.\n\nWhat it is: GHSA-25gq-jvx2-vg9x is a vulnerability in silverstripe/framework, published on 23 May 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-25gq-jvx2-vg9x in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- silverstripe/framework (Packagist): affected from 3.1.0; fixed in 3.1.13\n- silverstripe/framework (Packagist): affected from 3.1.0; fixed in 3.1.13\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-25gq-jvx2-vg9x/ (Markdown: https://insights.sbomify.com/GHSA-25gq-jvx2-vg9x/index.md)","id":"GHSA-25gq-jvx2-vg9x","markdown":"https://insights.sbomify.com/GHSA-25gq-jvx2-vg9x/index.md","name":"GHSA-25gq-jvx2-vg9x","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"configuration_change","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Silverstripe CMS","requires_auth":"none","summary":"Attackers can inject hostnames via X-Forwarded-Host to redirect users, affecting Silverstripe sites not behind reverse proxies.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"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\u003cIfModule mod_headers.c\u003e\n    # Remove X-Forwarded-Host header sent as a part of any request from the web\n    RequestHeader unset X-Forwarded-Host\n\u003c/IfModule\u003e\n```","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Silverstripe X-Forwarded-Host request hostname injection","id":"GHSA-25gq-jvx2-vg9x","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"open_redirect","year":"2024"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["3.1.13"],"introduced":["3.1.0"],"last_affected":[],"package":"silverstripe/framework","purl":null,"source":"GHSA-25gq-jvx2-vg9x"},{"ecosystem":"Packagist","fixed":["3.1.13"],"introduced":["3.1.0"],"last_affected":[],"package":"silverstripe/framework","purl":"pkg:composer/silverstripe/framework","source":"GHSA-25gq-jvx2-vg9x"}],"products":null,"published":"2024-05-23","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can inject hostnames via X-Forwarded-Host to redirect users, affecting Silverstripe sites not behind reverse proxies.","url":"https://insights.sbomify.com/GHSA-25gq-jvx2-vg9x/"}