# CVE-2024-28397: js2py allows remote code execution

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.81%, higher than 92% of CVEs (2026-12-01)
- Published: 2024-06-20T00:00:00.000Z
- Modified: 2026-09-10T03:50:15.483Z
- Also known as: GHSA-h95x-26f3-88hr, PYSEC-2026-1476
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- js2py js2py_disable_pyimport: before 0.74
- js2py (PyPI): up to 0.74

## Every score

- CISA-ADP: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/Marven11> (web)
- <https://github.com/Marven11/CVE-2024-28397-js2py-Sandbox-Escape> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-28397> (advisory)
- <https://github.com/PiotrDabkowski/Js2Py/pull/323> (web)
- <https://github.com/PiotrDabkowski/Js2Py> (package)
- <https://pypi.org/project/js2py> (package)
- <https://github.com/advisories/GHSA-h95x-26f3-88hr> (advisory)

## Sources

- CVE List: [CVE-2024-28397](https://www.cve.org/CVERecord?id=CVE-2024-28397), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-h95x-26f3-88hr](https://github.com/advisories/GHSA-h95x-26f3-88hr), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-28397](https://nvd.nist.gov/vuln/detail/CVE-2024-28397), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1476](https://osv.dev/vulnerability/PYSEC-2026-1476), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-28397 · Whole record: https://cve.day/CVE-2024-28397.json · Rebuilt by cve.day 2026-11-25T22:58:42.078Z
