{"id":"CVE-2026-54510","state":"PUBLISHED","title":"Speakr: CSRF bypass via unauthenticated API token parameter in csrf_exempt_for_api_tokens hook","description":"Speakr is a personal, self-hosted web application designed for transcribing audio recordings. Prior to 0.8.21-alpha, the csrf_exempt_for_api_tokens() before_request hook in src/app.py calls csrf.exempt(view_func), permanently adding the selected view to Flask-WTF's process-global exemption set. The is_token_authenticated() function in src/utils/token_auth.py calls extract_token_from_request() and treats any present token, including request.args.get('token'), as authenticated without hashing the token, querying the database, or checking validity. A network-reachable attacker can therefore send a false token to disable CSRF protection for the targeted view for the worker lifetime. Because the exemption applies to the view function across HTTP methods, a cross-origin GET to /account with a query token can poison CSRF state for a later state-changing POST without triggering CORS preflight. This browser sequence requires attacker-controlled content on a sibling subdomain under the documented cookie conditions. The bypass can modify profile data, custom prompts, transcription settings, preferences, and administrative status through routes such as admin_toggle_admin. The change_password route also skips current-password verification when current_user.password is empty, allowing the chain to set a local password on an SSO-only account and bypass SSO. This issue is fixed in version 0.8.21-alpha.","publishedAt":"2026-09-17T20:20:29.308Z","updatedAt":"2026-09-18T13:31:09.004Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["murtaza-nasir speakr"],"affected":[{"vendor":"murtaza-nasir","product":"speakr","versions":[{"version":"< 0.8.21-alpha","status":"affected"}]}],"references":["https://github.com/murtaza-nasir/speakr/security/advisories/GHSA-x4q4-3ww4-h329","https://github.com/murtaza-nasir/speakr/commit/70e193e47b664bedf274f62aea14220f2a85a459","https://github.com/murtaza-nasir/speakr/releases/tag/v0.8.21-alpha"],"weaknesses":["CWE-287","CWE-352"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/54xxx/CVE-2026-54510.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-54510","state":"PUBLISHED","datePublished":"2026-09-17T20:20:29.308Z","dateUpdated":"2026-09-18T13:31:09.004Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-15T18:01:15.513Z"},"containers":{"cna":{"title":"Speakr: CSRF bypass via unauthenticated API token parameter in csrf_exempt_for_api_tokens hook","descriptions":[{"lang":"en","value":"Speakr is a personal, self-hosted web application designed for transcribing audio recordings. Prior to 0.8.21-alpha, the csrf_exempt_for_api_tokens() before_request hook in src/app.py calls csrf.exempt(view_func), permanently adding the selected view to Flask-WTF's process-global exemption set. The is_token_authenticated() function in src/utils/token_auth.py calls extract_token_from_request() and treats any present token, including request.args.get('token'), as authenticated without hashing the token, querying the database, or checking validity. A network-reachable attacker can therefore send a false token to disable CSRF protection for the targeted view for the worker lifetime. Because the exemption applies to the view function across HTTP methods, a cross-origin GET to /account with a query token can poison CSRF state for a later state-changing POST without triggering CORS preflight. This browser sequence requires attacker-controlled content on a sibling subdomain under the documented cookie conditions. The bypass can modify profile data, custom prompts, transcription settings, preferences, and administrative status through routes such as admin_toggle_admin. The change_password route also skips current-password verification when current_user.password is empty, allowing the chain to set a local password on an SSO-only account and bypass SSO. This issue is fixed in version 0.8.21-alpha."}],"affected":[{"vendor":"murtaza-nasir","product":"speakr","versions":[{"version":"< 0.8.21-alpha","status":"affected"}]}],"references":[{"url":"https://github.com/murtaza-nasir/speakr/security/advisories/GHSA-x4q4-3ww4-h329","name":"https://github.com/murtaza-nasir/speakr/security/advisories/GHSA-x4q4-3ww4-h329","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/murtaza-nasir/speakr/commit/70e193e47b664bedf274f62aea14220f2a85a459","name":"https://github.com/murtaza-nasir/speakr/commit/70e193e47b664bedf274f62aea14220f2a85a459","tags":["x_refsource_MISC"]},{"url":"https://github.com/murtaza-nasir/speakr/releases/tag/v0.8.21-alpha","name":"https://github.com/murtaza-nasir/speakr/releases/tag/v0.8.21-alpha","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.1,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-287","lang":"en","description":"CWE-287: Improper Authentication","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-352","lang":"en","description":"CWE-352: Cross-Site Request Forgery (CSRF)","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-09-17T20:20:29.308Z"},"source":{"advisory":"GHSA-x4q4-3ww4-h329","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/murtaza-nasir/speakr/security/advisories/GHSA-x4q4-3ww4-h329","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-18T13:30:37.449695Z","id":"CVE-2026-54510","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-18T13:31:09.004Z"}}]}}}