MEDIUM6.3
PYSEC-2026-2975
PyBlade: SSTI/RCE via Bypassed AST Validation in sandbox.py
Details
A vulnerability has been found in AntaresMugisho PyBlade 0.1.8-alpha/0.1.9-alpha. The affected element is the function _is_safe_ast of the file sandbox.py of the component AST Validation. Such manipulation leads to improper neutralization of special elements used in a template engine. The attack may be performed from remote. The exploit has been disclosed to the public and may be used. The project was informed of the problem early through an issue report but has not responded yet.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/pyblade
Introduced in:
0.1.8-alphaNo fixed version published yet for pyblade (pip). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-5559[ADVISORY]
- https://github.com/AntaresMugisho/PyBlade/issues/1[WEB]
- https://github.com/AntaresMugisho/PyBlade/issues/1#issue-4086730906[WEB]
- https://github.com/AntaresMugisho/PyBlade[PACKAGE]
- https://vuldb.com/submit/782904[WEB]
- https://vuldb.com/vuln/355329[WEB]
- https://vuldb.com/vuln/355329/cti[WEB]
- https://pypi.org/project/pyblade[PACKAGE]
- https://github.com/advisories/GHSA-23jg-5f8m-gw8c[ADVISORY]