CVE-2026-60091: PraisonAI before 4.6.78 Unauthenticated SSRF via webhook_url

Published Jul 10, 2026
·
Updated

Summary

PraisonAI's Async Jobs API enables its API-key middleware only when PRAISONAIJOBSAPIKEY is set, so by default every endpoint is unauthenticated. An unauthenticated POST /api/v1/runs accepts an attacker-controlled webhookurl; on job completion the server POSTs the job payload to it via httpx. The webhookurl has an SSRF validator (gethostbyname + private-IP check), but it validates at request time while httpx re-resolves at connection time — a DNS-rebinding TOCTOU that reaches internal services. Runtime-confirmed as an unauthenticated, blind SSRF (the internal canary received the POST; the internal response is not returned to the attacker). Severity Medium.

Details

Affected component - Package: praisonai 4.6.63. Files: src/praisonai/praisonai/jobs/server.py, jobs/router.py, jobs/executor.py, jobs/models.py.

Vulnerable code / root cause

Path: src/praisonai/praisonai/jobs/server.py

Function: createapp

Snippet: python jobsapikey = os.environ.get("PRAISONAIJOBSAPIKEY") ... if jobsapikey: app.addmiddleware(JobsAPIKeyMiddleware) # auth ONLY when env var is set Issue: with the env var unset (default), no auth middleware is added → all endpoints unauthenticated. Default bind is 127.0.0.1.

Path: src/praisonai/praisonai/jobs/router.py

Function: submitjob

Snippet: python @router.post("", responsemodel=JobSubmitResponse, statuscode=202) async def submitjob(request, response, body: JobSubmitRequest, ...): # no auth dependency; body.webhookurl is attacker-controlled job = Job(prompt=body.prompt, webhookurl=body.webhookurl, ...) await executor.submit(job) Issue: attacker-controlled webhookurl flows into the job with no authentication on the endpoint.

Path: src/praisonai/praisonai/jobs/models.py (validator) and src/praisonai/praisonai/jobs/executor.py (sink)

Function: validatewebhookurl → sendwebhook

Snippet: python models.py validatewebhookurl (CHECK time) ip = socket.gethostbyname(hostname) if ipaddress.ipaddress(ip).isprivate or ...: raise ValueError("Webhook URL resolves to a private or restricted network address")

executor.py sendwebhook (CONNECT time, re-resolves, no pinning) async with httpx.AsyncClient(timeout=30.0) as client: response = await client.post(job.webhookurl, json=payload, ...) Issue: the validator resolves the hostname at validation time but does not pin the IP for the httpx.post connection → DNS rebinding (independent resolution at check vs connect) bypasses it and reaches internal services.

Attack flow 1. Operator runs the Jobs API without PRAISONAIJOBSAPIKEY (default → unauth). 2. Attacker POST /api/v1/runs with webhookurl = a rebinding domain. 3. The validator(s) see a public IP (pass); on completion httpx.post re-resolves to an internal IP and connects → SSRF to internal.

Why existing protection is bypassed Auth is opt-in (only when the env var is set). The webhookurl validator resolves at check time but does not pin the IP for the connection → DNS-rebinding TOCTOU. (Correction to an earlier static note: the guard exists but is bypassable.)

Security boundary Unauthenticated network peer → server-side request to internal services (Scope: Changed). Default bind 127.0.0.1 limits remote reach unless the operator binds non-loopback.

Proof of Concept

Environment Real Jobs API (python -m praisonai.jobs.server, no API key) in a local runtime (127.0.0.1:18085), resolver pointed at the controlled rebinding DNS, internal canary Docker-internal only. Runnable assets: PraisonAI-Runtime-Repro\runtime-files\ (docker-compose.jobs.yml).

Steps to reproduce 1. PRAI-04-01-Jobs-Submit-NoAuth: POST /api/v1/runs {"prompt":"hello"} → 202 (no auth). 2. PRAI-04-02-Jobs-Webhook-SSRF-Blind: POST /api/v1/runs {"prompt":"hello","webhookurl":"http://rebind.lab:8081/secret"} → 202.

Expected result Unauthenticated job submission should be rejected; the webhook SSRF guard should prevent reaching internal services regardless of DNS timing.

Impact Unauthenticated job submission (LLM cost abuse); SSRF to internal services (blind, DNS-rebinding); exfiltration of the job result to an attacker-controlled webhook.

Suggested remediation - Authenticate the Jobs API by default (auto-generate a token / fail closed when binding non-loopback), like the gateway. - For webhookurl: resolve once, reject private/loopback/CGNAT/metadata, then pin and connect to the validated IP; disable redirects.

Other sources

PraisonAI before 4.6.78 contains an unauthenticated server-side request forgery vulnerability in the Jobs API /api/v1/runs endpoint. The webhookurl parameter is validated at request time but re-resolved at connection time, allowing attackers to use DNS rebinding to reach internal services with a blind SSRF attack.

— NVD

Affected Software

2 affected componentsFixes available
PraisonAI PraisonAI<4.6.78
pip/praisonai<=4.6.77
4.6.78

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.6.78
  2. Upgrade

    Upgrade praisonai to a version that resolves this vulnerability.

    Fixed in 4.6.78
  3. Configuration

    Authenticate the Jobs API by setting PRAISONAI_JOBS_API_KEY; do not leave API-key authentication disabled by default.

    PraisonAI Jobs API PRAISONAI_JOBS_API_KEY = set
  4. Compensating control

    For webhook_url, resolve the hostname once, reject private, loopback, CGNAT, and metadata addresses, pin the connection to the validated IP, and disable redirects.

Event History

Jul 10, 2026
CVE Published
via MITRE·01:58 PM
Data Sourced
via MITRE·01:58 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:16 PM
DescriptionSeverityWeakness
Oct 8, 2026
Advisory Published
via GitHub·09:57 PM
Data Sourced
via GitHub·09:57 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-60091?

CVE-2026-60091 has a medium severity score of 6.9.

2

How do I fix CVE-2026-60091?

To mitigate CVE-2026-60091, upgrade to PraisonAI version 4.6.78 or later.

3

What type of vulnerability is CVE-2026-60091?

CVE-2026-60091 is classified as an unauthenticated server-side request forgery (SSRF) vulnerability.

4

What components are affected by CVE-2026-60091?

CVE-2026-60091 affects the Jobs API endpoint /api/v1/runs in PraisonAI versions prior to 4.6.78.

5

Can CVE-2026-60091 be exploited remotely?

Yes, CVE-2026-60091 can be exploited remotely due to its unauthenticated nature.

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