# CVE-2026-40332: Masa CMS open redirect via improper handling of scheme-relative URLs

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-05-06T20:13:18.357Z
- Modified: 2026-06-17T10:45:07.977Z
- Weaknesses: CWE-601
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Masa CMS is affected by an Open Redirect vulnerability due to improper handling of scheme-relative URLs. The application incorrectly interprets paths beginning with double slashes (//) as internal paths, failing to validate the redirect target before processing. The application treats these values as internal paths and processes them without confirming that the redirect target remains on the local site. 

An attacker can craft a URL on the trusted Masa CMS domain that redirects a victim to an external attacker-controlled site. This can be used for phishing and, in some authentication flows, may expose tokens or other sensitive data to the external site. This issue has been fixed in versions 7.2.10, 7.3.15, 7.4.10, and 7.5.3. As a workaround, reject or rewrite redirect parameters that begin with // and consider disabling forceDirectoryStructure if compatible with the deployment.

(As written by CVE List.)

## Affected

- MasaCMS MasaCMS: < 7.2.10; >= 7.3.0, < 7.3.15; >= 7.4.0, < 7.4.10; >= 7.5.0, < 7.5.3

## References

- <https://github.com/MasaCMS/MasaCMS/security/advisories/GHSA-xw99-h3mw-wj47>

## Sources

- CVE List: [CVE-2026-40332](https://www.cve.org/CVERecord?id=CVE-2026-40332), CVE Terms of Use, modified 2026-05-07
- NVD: [CVE-2026-40332](https://nvd.nist.gov/vuln/detail/CVE-2026-40332), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-40332 · Whole record: https://cve.day/CVE-2026-40332.json · Rebuilt by cve.day 2026-11-25T22:59:20.836Z
