Flowise OAuth2 token endpoint open to anyone, leaks access tokens
What this means
An attacker can steal OAuth2 access tokens for any third-party service (Google, Microsoft, GitHub) connected to Flowise without needing a password or login. They can then use those tokens to read and change data in the victim's accounts on those services. This includes email, files, code repositories and any other data the tokens grant access to.
SecurityElites Manager Brief: the decision in one minute
Flowise exposes a token refresh endpoint to the public internet without requiring login. Anyone can call it to steal OAuth2 access tokens for services like Google or Microsoft. The business impact is account takeover of connected services and data breach of customer integrations.
| SecurityElites Fix-First Score | 51 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 7 days Critical severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform engineering or DevOps team (owns Flowise deployment). |
| Likely effort | About 15 minutes per Flowise instance: upgrade to version 3.1.3 and restart. No configuration changes needed. Identifying whether this was used against you may take longer depending on log retention. |
Questions to ask your team or supplier
- Has anyone checked the access logs for POST requests to /api/v1/oauth2-credential/refresh/ from before today, and do we know whether this endpoint was called by unauthorised users?
- What OAuth2 providers (Google, Microsoft, GitHub, etc.) are configured in this Flowise instance, and do we have audit logs from those providers showing suspicious token refreshes or new sessions?
Message you can forward to the owning team
Security notice: Flowise OAuth2 token endpoint open to anyone, leaks access tokens (CVE-2026-70478)
Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: upgrade to flowise 3.1.3 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-70478-flowise-oauth2-token-endpoint-open-to-anyone-leaks-access/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01670What is at stake in your AI setup
- OAuth2 credentials and tokens: stolen tokens allow attackers to impersonate the user on Google, Microsoft or other connected services that may hold prompts, training data or API keys.
- Keys for AI providers: if the connected OAuth service stores API keys for OpenAI, Anthropic or other LLM providers, those keys can be accessed by the attacker.
- Tools and systems an AI agent is connected to: if Flowise agents use OAuth to access email, Slack, Salesforce or other business systems, the attacker can use stolen tokens to access those systems on behalf of the user.
Who is exposed
- Flowise instances running versions before 3.1.3 exposed to the internet or on a network with untrusted users.
- Teams using Flowise with OAuth2 credentials for Google, Microsoft, GitHub or other providers.
- Deployments where the credential IDs can be guessed or found (for example, in leaked chatflow configurations).
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| flowise npm | Every version before 3.1.3 | 3.1.3 or later |
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | Working attack code is public, so expect attacks to follow |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | None. No login is needed |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | High |
| Risk of: data or settings being changed | Limited |
| Risk of: the service being taken down | None |
| Can attackers automate it at scale | Yes, according to CISA |
| How much control an attacker gains | Partial control, according to CISA |
Read from the official severity rating: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
Kind of coding mistake
- CWE-200: information is exposed to the wrong party
If you cannot upgrade today
- Until you can upgrade, block access to POST /api/v1/oauth2-credential/refresh/* at the reverse proxy, load balancer or firewall level. Allow only requests that include valid authentication (session cookie or Authorization header).
- Restrict network access to Flowise so only trusted IP addresses can reach it.
- Revoke and re-create all OAuth2 credentials in Flowise now, and monitor those provider accounts closely for unusual activity.
Signs it may already have been used against you
- Access logs: look for POST requests to /api/v1/oauth2-credential/refresh/* without a valid session cookie or Authorization header.
- OAuth provider audit logs: check for unexpected token refresh events, especially from new IP addresses or at unusual times.
- Flowise logs: search for lines mentioning 'credential' or 'refresh' that do not have an authenticated user context.
- Network traffic: monitor for repeated calls to the refresh endpoint from outside your office network.
Log searches to start from
Unauthenticated requests to the OAuth2 refresh endpoint (adapt sourcetype and field names)Splunk
sourcetype=http_access path=/api/v1/oauth2-credential/refresh* method=POST (NOT auth=*) OR (auth=null) | stats count by src_ip, path, statusUnauthenticated OAuth2 refresh requests (adapt index and field names)Elastic
http.request.path:/api/v1/oauth2-credential/refresh* AND http.request.method:POST AND (NOT http.request.headers.authorization:* OR http.response.status_code:401) | stats count by source.ip, http.request.pathWritten with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.
SecurityElites Fix Guide: step by step
- Find where Flowise is runningList all servers or containers running Flowise. Note the hostname, port and current version number. Check deployment tools, container registries or service management systems.
- Check the current versionConnect to each Flowise instance and find the version number. This is usually shown in the UI settings, in a package.json file, or in the output of npm list flowise.
- Back up the Flowise databaseExport or snapshot the Flowise database and stored credentials. If the upgrade fails or causes problems, you will need this backup to roll back.
- Upgrade to version 3.1.3Upgrade the Flowise package to version 3.1.3 or later using your normal update process (npm, Docker, package manager). Follow the Flowise upgrade guide for your deployment method.
- Restart FlowiseRestart the Flowise service or container. Wait for it to become healthy and responsive. Check the logs for any errors during startup.
- Verify the fixCall POST /api/v1/oauth2-credential/refresh/test-id on the upgraded instance. It should return a 401 Unauthorized error, not a 200 OK with a token. If you see 401, the fix is in place.
- Check for signs of past exploitationReview access logs for POST requests to /api/v1/oauth2-credential/refresh/ from before today. Look for requests from IP addresses you do not recognise or at odd hours. Check the audit logs of connected OAuth providers (Google, Microsoft) for suspicious token refresh events or new sessions.
- Rotate OAuth2 tokens for connected servicesIf you found suspicious refresh requests, revoke and re-authenticate the OAuth2 credentials in Flowise for Google, Microsoft and other providers. This invalidates any stolen tokens and forces a new handshake.
How to confirm it is fixed: Call POST /api/v1/oauth2-credential/refresh/test-id against the upgraded instance; it should return HTTP 401 Unauthorized instead of a successful response with a token.
SecurityElites Quick Fixes: copy and paste
Upgrade flowise with npmupgrade
npm install flowise@3.1.3
npm ls flowiseCheck Flowise version (npm)for this issue
npm list flowiseCheck Flowise version (Docker)for this issue
docker exec <container_id> npm list flowiseVerify endpoint requires auth (should return 401)for this issue
curl -X POST http://localhost:3000/api/v1/oauth2-credential/refresh/test-idRequire sign-in with nginx in front of the servicegeneral hardening
location / {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd;
proxy_pass http://127.0.0.1:8080;
}Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (CVE-2026-70478) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - flowise (npm): must be 3.1.3 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## Flowise OAuth2 token endpoint open to anyone, leaks access tokens (CVE-2026-70478)
**Severity:** Critical | **SE Fix-First Score:** 51/100 | **Fix window:** Within 7 days
**Record:** SE-AIV-01670 https://securityelites.com/ai-vulnerabilities/cve-2026-70478-flowise-oauth2-token-endpoint-open-to-anyone-leaks-access/
### Why this matters
An attacker can steal OAuth2 access tokens for any third-party service (Google, Microsoft, GitHub) connected to Flowise without needing a password or login. They can then use those tokens to read and change data in the victim's accounts on those services. This includes email, files, code repositories and any other data the tokens grant access to.
### What to do
1. Find where Flowise is running
2. Check the current version
3. Back up the Flowise database
4. Upgrade to version 3.1.3
5. Restart Flowise
6. Verify the fix
7. Check for signs of past exploitation
8. Rotate OAuth2 tokens for connected services
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-70478-flowise-oauth2-token-endpoint-open-to-anyone-leaks-access/
### Done when
- [ ] flowise is at 3.1.3 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Call POST /api/v1/oauth2-credential/refresh/test-id against the upgraded instance; it should return HTTP 401 Unauthorized instead of a successful response with a token.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- Flowise CSV and Airtable agents allow data theft via prompt injection Critical · CVE-2026-73487
- Flowise can run commands and read files outside its sandbox Critical · CVE-2026-119978
- Flowise CSV Agent can run Python code sent by attackers Critical · CVE-2026-70477
- Flowise allows authenticated users to change other organizations' billing High · CVE-2026-70476
- Flowise allows any authenticated user to change execution records without permission check High · CVE-2026-70475
- Flowise can read and change OAuth2 credentials from other workspaces High · CVE-2026-70474
The same kind of mistake in other AI tools
- Langflow OSS allows authenticated users to access or change other users' flows High · CVE-2026-127067
- BaaRai ARTEX admin account can be claimed without authentication on first setup Critical · CVE-2026-140422
- BaaRai ARTEX admin login can be guessed without limits or lockouts Critical · CVE-2026-140365
- NLTK dependency parser crashes on long sentences High · CVE-2026-129222
- NLTK regex patterns can be made to freeze the server High · CVE-2026-129229
Change history
- 4 Aug 2026: Made public
- 2 Dec 2026: Published
Official record
### SummaryThe OAuth2 token refresh endpoint (`POST /api/v1/oauth2-credential/refresh/:credentialId`) is in `WHITELIST_URLS`, meaning it requires **no authentication**. It decrypts the stored credential (containing `clientId`, `clientSecret`, `refresh_token`), sends a refresh request to the configured OAuth provider, and returns the new `access_token` directly in the response body.### Root Cause```typescript // packages/server/src/routes/oauth2/index.ts:393-402 res.json({ success: true, message: 'OAuth2 token refreshed successfully', credentialId: credential.id, tokenInfo: { ...tokenData, // ← includes access_token! has_new_refresh_token: !!tokenData.refresh_token, expires_at: updatedCredentialData.expires_at } }) ```Whitelist entry at `packages/server/src/utils/constants.ts:40`.### Attack Chain1. Attacker obtains a credential ID (via Finding 2 / public chatflow leak, or enumeration) 2. Attacker calls `POST /api/v1/oauth2-credential/refresh/:credentialId` (no auth required) 3. Server decrypts credential, sends refresh request to OAuth provider with user's `client_secret` 4. Server returns the new `access_token` in the response to the attacker 5. Attacker uses the token to access the victim's connected service (Google, Microsoft, etc.)### Docker Validation`POST /api/v1/oauth2-credential/refresh/fake-uuid` returns `{"message":"Credential not found"}` (not 401 Unauthorized), proving the endpoint processes the request without authentication.### Impact- OAuth2 access token theft for any connected service - Full access to the victim's third-party accounts (Google, Microsoft, GitHub, etc.) - Client secret transmitted to OAuth provider during refresh - Can also be used for DoS by exhausting refresh token quota### Suggested FixRemove the refresh endpoint from `WHITELIST_URLS` and require authentication:```typescript // Remove from WHITELIST_URLS in constants.ts // Add authentication check in the route handler ```---## Credits- Shinobi Security - https://github.com/shinobisecurity
Weakness type: CWE-200
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-70478For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.