CVE-2021-3994: PYSEC-2021-438 - django-helpdesk is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CVE-2021-3994 · Severity: low · CVSS 3 · Published 2021-12-01

django-helpdesk is a Django application for managing IT support tickets and helpdesk operations. A Cross-site Scripting (XSS) vulnerability in the application allows attackers to inject malicious scripts that execute in users' browsers, potentially compromising session cookies, redirecting users to phishing sites, or defacing helpdesk pages viewed by staff and customers.

Technologies: django-helpdesk (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2021-3994 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2021-3994 being exploited in the wild.
How severe is CVE-2021-3994?
Low severity, with a CVSS score of 3, published 1 December 2021.
Which products and versions are affected?
django-helpdesk (PyPI) ECOSYSTEM:introduced=0,fixed=0.3.2, GIT:introduced=0,fixed=a22eb0673fe0b7784f99c6b5fd343b64a6700f06|ECOSYSTEM:introduced=0,fixed=0.3.2.
Is there a fix for CVE-2021-3994?
Yes. django-helpdesk (PyPI): upgrade to 0.3.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2021-3994 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2021-3994?
Check whether you run django-helpdesk (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • django-helpdesk (PyPI): upgrade to 0.3.2 or later
    pip install "django-helpdesk>=0.3.2"

Technical details

django-helpdesk contains an improper input neutralization vulnerability (CWE-79) allowing Cross-site Scripting attacks. The vulnerability stems from insufficient escaping in markdown pattern handling, as evidenced by a pattern regex fix in the codebase that removed problematic escaping sequences. The attack requires user interaction (UI:R) and is network-accessible with no authentication required. An attacker can inject malicious JavaScript through markdown processing that executes in the context of other users' browsers. The vulnerability has been patched in version 0.3.2 and later.

Affected products

  • django-helpdesk django-helpdesk before 0.3.2

Identifiers

  • CVE-2021-3994
  • GHSA-2v5j-q74q-r53f
  • PYSEC-2021-438

Timeline

  • 2021-12-01: disclosed: NVD published
  • 2021-12-03: advisory: GHSA-2v5j-q74q-r53f published
  • 2021-12-03: patched: Fixed in version 0.3.2

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.