GHSA-298x-3jqf-3wvc: Magique ai Malicious Code Vulnerability

HIGH
CWE-506
Published
Advisory Summary

GHSA-298x-3jqf-3wvc is a HIGH malicious code vulnerability (CWE-506: Embedded Malicious Code) affecting Magique ai libraries in the PyPI ecosystem. The issue involves malicious code in magique-ai (pypi). Remediation is available in the latest vendor maintenance releases.

GHSA-298x-3jqf-3wvc at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-298x-3jqf-3wvc
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-506: Embedded Malicious Code
Affected Product Magique ai
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix GHSA-298x-3jqf-3wvc

To remediate this vulnerability, upgrade all affected Magique ai 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-ai fixed: Latest secure release
pip install magique-ai>=Latest secure release
magique-ai fixed: Latest secure release
pip install magique-ai>=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-ai

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-298x-3jqf-3wvc, inspect your installed packages using pip:

pip show magique-ai

Analyze the terminal output to locate any version of Magique ai 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-ai 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 ai, 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-ai 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-298x-3jqf-3wvc Affected Magique ai Versions

2 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
magique-ai
PyPI
0.4.4
All 1 versions
0.4.4
None specified
magique-ai
PyPI
0.4.5
All 1 versions
0.4.5
None specified

References

Frequently Asked Questions

What is GHSA-298x-3jqf-3wvc?
GHSA-298x-3jqf-3wvc is a security vulnerability in Magique ai involving Malicious code in magique-ai (PyPI) under CWE-506: Embedded Malicious Code.
Which Magique ai versions are affected?
Affected versions include releases prior to current release patches across affected packages: magique-ai.
What version fixes GHSA-298x-3jqf-3wvc?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is magique-ai affected?
Yes, magique-ai is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-298x-3jqf-3wvc?
GHSA-298x-3jqf-3wvc 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-298x-3jqf-3wvc?
Run the dependency tree command: 'pip show magique-ai'. 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-298x-3jqf-3wvc",
  "modified" : "2026-12-02T21:04:40Z",
  "published" : "2026-12-02T21:04:40Z",
  "aliases" : [ ],
  "summary" : "Malicious code in magique-ai (PyPI)",
  "details" : "Part of the \"Hades\" wave of the Shai-Hulud supply-chain campaign. On 2026-06-08, malicious phantom releases of magique-ai 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\ncharacterized 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-ai"
    },
    "versions" : [ "0.4.4" ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "magique-ai"
    },
    "versions" : [ "0.4.5" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/magique-ai/PYSEC-2026-593.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://inspector.pypi.io/project/magique-ai/0.4.5/packages/33/51/f36b85977bd09b12a88aff94531b608659312497c8856b73353603f11405/magique_ai-0.4.5-py3-none-any.whl//magique_ai-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-02T21:04:40Z",
    "nvd_published_at" : null
  }
}