CVE-2017-9071: MODX Revolution XSS via HTTP Host Header Vulnerability

modx/revolution Updated 02 Oct 2025

Summary

17/05/2022
Yes i
Moderate
4.7

CVE-2017-9071: MODX Revolution XSS via HTTP Host header. Affects modx/revolution versions < 2.5.7. Fixed in 2.5.7. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

MODX Revolution is an open-source content management system (CMS) that allows users to create and manage websites with ease. It is known for its flexibility, scalability, and user-friendly interface. However, prior to version 2.5.7, MODX Revolution is vulnerable to a cross-site scripting (XSS) attack through the HTTP Host header, which can be exploited in conjunction with other vulnerabilities such as cache poisoning.

Vulnerability Detail

The vulnerability arises from the improper handling of the HTTP Host header in MODX Revolution versions before 2.5.7. An attacker can inject a malicious payload into the Host header of a request, potentially leading to XSS attacks. This could allow the attacker to execute arbitrary scripts in the context of the user's browser, compromising user data and session integrity. The risk is heightened when combined with cache poisoning, making it a moderate threat to users of the affected versions.

How To Fix

Minimum fixed version

2.5.7

This is the first release that contains the fix.

composer require modx/revolution:2.5.7

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If you cannot immediately update to the patched version, consider implementing input validation on the server-side to sanitize the HTTP Host header. This can help mitigate the risk of XSS attacks until you can apply the official patch.

Conclusion

The CVE-2017-9071 vulnerability in MODX Revolution poses a moderate risk due to its potential for XSS attacks via the HTTP Host header. Users are strongly advised to update to version 2.5.7 or later to mitigate this risk. Additionally, utilizing tools like Vulert can help keep your applications secure by monitoring for vulnerabilities.

See every vulnerability recorded for modx/revolution →

Share this vulnerability

FAQ

CVE-2017-9071 is a vulnerability in MODX Revolution that allows for cross-site scripting (XSS) attacks via the HTTP Host header.

If you are using a version of MODX Revolution prior to 2.5.7, your installation is vulnerable. You can check your version in the admin panel or by using the Vulert playground.

An attacker could exploit this vulnerability to execute malicious scripts in a user's browser, potentially leading to data theft or session hijacking.

Yes, you can use Vulert to monitor and alert you in real-time for open-source vulnerabilities in your software without needing access to the code or installation.

Implement server-side input validation to sanitize the HTTP Host header as a temporary workaround until you can update to the patched version.

Related vulnerabilities

Recent vulnerabilities recorded for modx/revolution.

How To Fix

Minimum fixed version

2.5.7

This is the first release that contains the fix.

composer require modx/revolution:2.5.7

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback