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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.4
- **CVSS:** 8.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: High; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.13% (percentile 66, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-qv6c-367r-3w6q, PYSEC-2022-43175
- **Published:** 2022-11-28T00:00:00.000Z
- **Modified:** 2026-06-17T05:11:18.133Z

## Who should check

- Projects that depend on PyPI package xblock-drag-and-drop-v2 (\< 3.0.0)
- Anyone running openedx xblock-drag-and-drop-v2 \< 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.

## Affected and fixed versions

- PyPI `xblock-drag-and-drop-v2`: affected \< 3.0.0; fixed 3.0.0 (osv)
- openedx xblock-drag-and-drop-v2: \< 3.0.0 (cvelist)

## Mitigation

- Upgrade xblock-drag-and-drop-v2 to 3.0.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-46147. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-46147.md
Affected: xblock-drag-and-drop-v2 < 3.0.0
Fixed in: 3.0.0

Steps:
1. Search this machine and project for xblock-drag-and-drop-v2 (PyPI), openedx xblock-drag-and-drop-v2: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-46147 being exploited?

There is no confirmed exploitation: CVE-2022-46147 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.13% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-46147?

High: CVSS 8.4 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2022-46147?

xblock-drag-and-drop-v2 \< 3.0.0.

### Is there a fix for CVE-2022-46147?

Yes. Fixed in 3.0.0. Upgrade xblock-drag-and-drop-v2 to 3.0.0 or later.

### How do I check if I'm affected by CVE-2022-46147?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/openedx/xblock-drag-and-drop-v2/security/advisories/GHSA-qv6c-367r-3w6q>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-46147>
- patch: <https://github.com/openedx/xblock-drag-and-drop-v2/pull/295#issuecomment-1277693864>
- patch: <https://github.com/openedx/xblock-drag-and-drop-v2/commit/68887d1b4a44325d2de7573d450e41129ba98b1a>
- patch: <https://github.com/openedx/xblock-drag-and-drop-v2/releases/tag/v3.0.0>
- patch: <https://github.com/openedx/xblock-drag-and-drop-v2/commit/53c4482f9bb6d8c7ccdf5253bd82c84a222b2492>
- other: <https://github.com/openedx/xblock-drag-and-drop-v2>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/xblock-drag-and-drop-v2/PYSEC-2022-43175.yaml>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-46147>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-qv6c-367r-3w6q> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2022-43175> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-46147> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-46147>
