Skip to content
OpenAdvisories
Medium · 5.3 Scanner template Public exploit CVE-2024-28397 EUVD-2024-2066GHSA-h95x-26f3-88hrPYSEC-2026-1476

js2py allows remote code execution

Published Jun 20, 2024 · Updated Aug 2, 2024 · 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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-cloudscraper No fix yet —
Ubuntu 26.04 LTS python-cloudscraper No fix yet —
Ubuntu 25.10 python-cloudscraper No fix yet —
Ubuntu 24.04 LTS python-cloudscraper No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Js2Py 0.74-3.1 openSUSE-SU-2026:11322-1, openSUSE-SU-2024:14086-1
openSUSE Leap 15.6 python-Js2Py 0.74-150400.9.6.1 SUSE-SU-2024:2272-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling kubeflow-pipelines-visualization-server 2.4.0-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 1

GitHub 16 repositories · most starred shown

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI js2py <= 0.74 — GHSA-h95x-26f3-88hr

Advisories 3

References