Skip to content

Instantly share code, notes, and snippets.

@Ro1ME
Last active September 26, 2026 04:38
Show Gist options
  • Select an option

  • Save Ro1ME/a03814bf661b36823c3ef5e32af93298 to your computer and use it in GitHub Desktop.

Select an option

Save Ro1ME/a03814bf661b36823c3ef5e32af93298 to your computer and use it in GitHub Desktop.
CVE-2026-51861 - Code Injection in bisheng (validate.py:post_validate_code)

CVE-2026-51861

Type: Code Injection Product: bisheng Affected versions: 2.3.0–2.4.0-beta1 Affected component: src/backend/bisheng/api/v1/validate.py:post_validate_code Suggested CWE: CWE-94 (Code Injection) Reference: dataelement/bisheng#1995

Description

bisheng 2.3.0, 2.4.0, and 2.4.0-beta1 is vulnerable to Code Injection in src/backend/bisheng/api/v1/validate.py.

Reproduction Notes (condensed, sanitized)

Condensed from the authorized local validation used for the original report; local filesystem paths are replaced with <local-path>.

=== STEP 1: Setup Environment ===

  1. Clone repository: git clone https://github.com/dataelement/bisheng.git
  2. Checkout vulnerable version: git checkout v2.4.0-beta1
  3. Navigate to backend: cd src/backend
  4. Install dependencies: pip install -r requirements.txt && pip install -e . === STEP 2: Start bisheng Service ===
  5. Run: python -m bisheng.main
  6. Wait for: "Application startup complete" message
  7. Service runs on: http://localhost:7860 === STEP 3: Verify Endpoint Exists === curl -X POST http://localhost:7860/api/v1/validate/code
    -H "Content-Type: application/json"
    -d '{"code": "def test(): pass"}' Expected: {"status_code": 200, "data": {"imports": {"errors": []}, "function": {"errors": []}}} …

Discoverer

Ro1ME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment