MISFIRE

Browse / AI Framework and Platform Flaws / CVE-2026-41279

Flowise: Unauthenticated TTS endpoint accepts arbitrary credential IDs — enables API credit abuse via stored credentials

CVE-2026-41279 · 2026-04-17 high

Class
AI Framework and Platform Flaws (filed by a model that read the source)
Technique
Authentication and access control
Also involves
Unbounded Consumption
Affected
flowise (npm)
Gets past
Authentication check
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.3% chance of exploitation in 30 days

How it works, in short

The TTS generate route skips authentication and accepts any credential ID in the body, letting callers spend stored provider API keys belonging to others. (Our summary, written by a model. The source text is below.)

Details

Summary

The text-to-speech generation endpoint (POST /api/v1/text-to-speech/generate) is whitelisted (no auth) and accepts a credentialId directly in the request body. When called without a chatflowId, the endpoint uses the provided credentialId to decrypt the stored credential (e.g., OpenAI or ElevenLabs API key) and generate speech.

Root Cause

// packages/server/src/controllers/text-to-speech/index.ts:58-64
} else {
    // Use TTS config from request body
    provider = bodyProvider
    credentialId = bodyCredentialId  // ← attacker-controlled credential ID
    voice = bodyVoice
    model = bodyModel
}

Docker Validation

POST /api/v1/text-to-speech/generate with arbitrary credentialId in body: endpoint processes request, sends SSE tts_start event, only fails when credential doesn't exist — proves code path runs without authentication.

Impact

Suggested Fix

Remove the TTS endpoint from WHITELIST_URLS or validate that the credential belongs to the chatflow being used:

// Only allow credentialId when it matches the chatflow's TTS configuration
if (!chatflowId) {
    return res.status(401).json({ message: 'Authentication required' })
}

---

References

Credits

- Shinobi Security - https://github.com/shinobisecurity

References

Source: GitHub Advisory Database, used under CC BY 4.0.