{"id":"CVE-2026-41425","aliases":["CVE-2026-41425","GHSA-jj8c-mmj3-mmgv","PYSEC-2026-25"],"related":[],"kind":"vulnerability","state":"published","title":"Authlib: Cross-site request forging when using cache","summary":"Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.6.11, there is no CSRF protection on the cache feature in authlib.integrations.starlette_client.OAuth.  This vulnerability is fixed in 1.6.11.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.6.11, there is no CSRF protection on the cache feature in authlib.integrations.starlette_client.OAuth.  This vulnerability is fixed in 1.6.11.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThere is no CSRF protection on the cache feature on most integrations clients.\n\n### Details\nIn `authlib.integrations.starlette_client.OAuth`, no CSRF protection is set up when using the cache parameter. When _not_ using the cache parameter, the use of SessionMiddleware ties the client to the auth state, preventing CSRF attacks. With the cache, there is no such mechanism. Other integratons have the same issue, it's not just starlette.\n\nThe state parameter is taken from the callback URL and the state is fetched from the cache without checking that it is the same client calling the redirect endpoint as was the one that initiated the auth flow.\n\nThis issue is documented in RFC 6749 section 10.12:\nhttps://datatracker.ietf.org/doc/html/rfc6749#section-10.12\n\n### PoC\n- Set up a Starlette integration with a cache\n- The attacker starts the auth flow up until before the callback URL is followed.\n- The attacked sends the redirect URL to the victim\n- The victim now completes the authorisation\n\n### Impact\nThis impacts all users that use the cache to store auth state.\n\nAll users will be vulnerable to CSRF attacks and may have an attacker's account tied to their own.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Authlib es una biblioteca de Python que construye servidores OAuth y OpenID Connect. Antes de la versión 1.6.11, no hay protección CSRF en la característica de caché en authlib.integrations.starlette_client.OAuth. Esta vulnerabilidad está corregida en la versión 1.6.11.","source":"nvd"}],"published":"2026-04-16T22:38:03.000Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-352"],"affected":[{"ranges":[{"version":"< 1.6.11","status":"affected"}],"vendor":"authlib","product":"authlib","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.6.11"}],"ecosystem":"PyPI","package":"authlib","purl":"pkg:pypi/authlib","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.6.11"}],"vendor":"authlib","product":"authlib","cpe":"cpe:2.3:a:authlib:authlib:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.6.11"}],"ecosystem":"PyPI","package":"authlib","purl":"pkg:pypi/authlib","source":"pysec"}],"references":[{"url":"https://github.com/authlib/authlib/security/advisories/GHSA-jj8c-mmj3-mmgv","tags":["evidence","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41425","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/authlib/authlib","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/authlib/PYSEC-2026-25.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-04-27T13:09:15.946Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41425","url":"https://www.cve.org/CVERecord?id=CVE-2026-41425","licence":"CVE Terms of Use","modified":"2026-04-27T13:35:01.596Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jj8c-mmj3-mmgv","url":"https://github.com/advisories/GHSA-jj8c-mmj3-mmgv","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:02.254Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41425","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41425","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-25","url":"https://osv.dev/vulnerability/PYSEC-2026-25","licence":"CC-BY-4.0","modified":"2026-05-20T09:18:53.642Z"}],"updatedAt":"2026-11-25T22:59:19.578Z","epss":{"score":0.0011,"percentile":0.014,"date":"2026-12-01T12:00:22.000Z"}}