GHSA-qmjc-65wp-7v34: Magique Malicious Code Vulnerability

HIGH
CWE-506
Published
Advisory Summary

GHSA-qmjc-65wp-7v34 is a HIGH malicious code vulnerability (CWE-506: Embedded Malicious Code) affecting Magique libraries in the PyPI ecosystem. The issue involves malicious code in magique (pypi). Remediation is available in the latest vendor maintenance releases.

GHSA-qmjc-65wp-7v34 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-qmjc-65wp-7v34
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-506: Embedded Malicious Code
Affected Product Magique
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix GHSA-qmjc-65wp-7v34

To remediate this vulnerability, upgrade all affected Magique dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

magique fixed: Latest secure release
pip install magique>=Latest secure release
magique fixed: Latest secure release
pip install magique>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show magique

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-qmjc-65wp-7v34, inspect your installed packages using pip:

pip show magique

Analyze the terminal output to locate any version of Magique in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The pip show magique command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-506: Embedded Malicious Code, where the product contains code that appears to be malicious in nature. In Magique, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Part of the "Hades" wave of the Shai-Hulud supply-chain campaign. On 2026-06-08, malicious phantom releases of magique were published to PyPI using stolen credentials. The package executes a bundled JavaScript payload (via the Bun runtime) on import that harvests and exfiltrates credentials and attempts self-propagation. This entry is a summary; behavior may not be fully characterized here. See the linked references for detailed analysis and indicators of compromise.

GHSA-qmjc-65wp-7v34 Affected Magique Versions

2 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
magique
PyPI
0.6.8
All 1 versions
0.6.8
None specified
magique
PyPI
0.6.9
All 1 versions
0.6.9
None specified

References

Frequently Asked Questions

What is GHSA-qmjc-65wp-7v34?
GHSA-qmjc-65wp-7v34 is a security vulnerability in Magique involving Malicious code in magique (PyPI) under CWE-506: Embedded Malicious Code.
Which Magique versions are affected?
Affected versions include releases prior to current release patches across affected packages: magique.
What version fixes GHSA-qmjc-65wp-7v34?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is magique affected?
Yes, magique is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-qmjc-65wp-7v34?
GHSA-qmjc-65wp-7v34 is classified under CWE-506: Embedded Malicious Code (The product contains code that appears to be malicious in nature.).
How can I check PyPI dependencies for GHSA-qmjc-65wp-7v34?
Run the dependency tree command: 'pip show magique'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qmjc-65wp-7v34",
  "modified" : "2026-12-02T20:48:19Z",
  "published" : "2026-12-02T20:48:19Z",
  "aliases" : [ ],
  "summary" : "Malicious code in magique (PyPI)",
  "details" : "Part of the \"Hades\" wave of the Shai-Hulud supply-chain campaign. On 2026-06-08, malicious phantom releases of magique were published to PyPI using stolen credentials. The package executes a bundled JavaScript payload (via the Bun runtime) on import that harvests and exfiltrates credentials and attempts self-propagation. This entry is a summary; behavior may not be fully characterized here. See the linked references for detailed analysis and indicators of compromise.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "magique"
    },
    "versions" : [ "0.6.8" ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "magique"
    },
    "versions" : [ "0.6.9" ]
  } ],
  "references" : [ {
    "type" : "PACKAGE",
    "url" : "https://github.com/Schtinguerch/magique"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/magique/PYSEC-2026-592.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://inspector.pypi.io/project/magique/0.6.9/packages/fb/cf/376a097f8893ac5c63e3d067b233bf16de9e3c980d8da0ac887a5619b297/magique-0.6.9-py3-none-any.whl//magique-setup.pth"
  }, {
    "type" : "WEB",
    "url" : "https://www.endorlabs.com/learn/shai-hulud-hades-wave-hits-six-pypi-bioinformatics-packages"
  }, {
    "type" : "WEB",
    "url" : "https://www.stepsecurity.io/blog/the-hades-campaign-pypi-packages"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-506" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-02T20:48:19Z",
    "nvd_published_at" : null
  }
}