# CVE-2026-51861: bisheng code injection in validate.py

Source: https://junglewise.ai/threats/cve-2026-51861-bisheng-2-3-0-2-4-0-and-2-4-0-beta1-is-vulnerable-to-code  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-30. Updated: 2026-09-30  
License: CC BY 4.0 with a link back

CVE-2026-51861 · Severity: info · Published 2026-09-30

bisheng is a workflow automation platform that allows users to build and execute data processing pipelines. A code injection vulnerability in the validation endpoint allows attackers to execute arbitrary Python code on the server, potentially leading to full system compromise, data theft, or service disruption.

Technologies: [Dataelement BISHENG](https://junglewise.ai/threats/technologies/bisheng). Vendors: [Dataelement](https://junglewise.ai/threats/vendors/dataelement).

## Quick answers

**Is CVE-2026-51861 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-51861 being exploited in the wild.

**How severe is CVE-2026-51861?** Informational severity, published 30 September 2026.

**Which products and versions are affected?** Dataelement BISHENG 2.3.0, 2.4.0, 2.4.0-beta1.

**Is there a fix for CVE-2026-51861?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-51861 attacked?** It is attacked over the network, in a hosted service.

**Am I affected by CVE-2026-51861?** Check whether you run Dataelement BISHENG at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A code injection flaw exists in the POST /api/v1/validate/code endpoint (src/backend/bisheng/api/v1/validate.py:post_validate_code) that fails to properly sanitize user-supplied Python code before evaluation. An attacker with network access to the bisheng API can send malicious Python code through the code parameter to achieve remote code execution with the privileges of the bisheng service process.

## Affected products

- dataelement bisheng 2.3.0, 2.4.0, 2.4.0-beta1

## Timeline

- 2026-09-30: disclosed

## References

- [https://gist.github.com/Ro1ME/a03814bf661b36823c3ef5e32af93298](https://gist.github.com/Ro1ME/a03814bf661b36823c3ef5e32af93298)
- [https://github.com/dataelement/bisheng/issues/1995](https://github.com/dataelement/bisheng/issues/1995)

## Related threats

- [BISHENG insecure direct object reference in knowledge file API](https://junglewise.ai/threats/cve-2026-111363-bisheng-through-3-0-0-beta4-contains-an-insecure-direct-object)
- [bisheng directory traversal in task_exec and cache utilities](https://junglewise.ai/threats/cve-2026-51860-bisheng-2-3-0-2-4-0-and-2-4-0-beta1-is-vulnerable-to-directory)
- [bisheng directory traversal in save_download_file](https://junglewise.ai/threats/cve-2026-51859-bisheng-2-3-0-2-4-0-and-2-4-0-beta1-is-vulnerable-to-directory)
- [BISHENG server-side request forgery in workflow callback API](https://junglewise.ai/threats/cve-2026-82285-bisheng-server-side-request-forgery-in-workflow-callback-api)
- [DataElement BISHENG remote code execution in workflow run_once](https://junglewise.ai/threats/cve-2026-82278-dataelement-bisheng-remote-code-execution-in-workflow-run-once)
