{"schema_version":"1.6.0","id":"XYZ-2026-00077","modified":"2026-11-25T21:48:56Z","published":"2026-11-10T18:46:54Z","summary":"Flask-Security-Too: two overlapping requests could both redeem one single-use refresh token","affected":[{"package":{"ecosystem":"PyPI","name":"flask-security"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.9.3"}]}]},{"package":{"ecosystem":"PyPI","name":"flask-security-too"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.9.3"}]}]}],"references":[{"type":"WEB","url":"https://packages.cyberxyz.io/xyz/XYZ-2026-00077"},{"type":"FIX","url":"https://github.com/pallets-eco/flask-security/commit/3da03afeaaeb48896f52ccbf3e7d11b90202e802"},{"type":"FIX","url":"https://github.com/pallets-eco/flask-security/commit/bc85c9b6ff725deaccf309189b997b08315c89ef"}],"credits":[{"name":"CyberXYZ Security Threat Intel Team","contact":["https://cyberxyz.io"],"type":"ANALYST"}],"database_specific":{"cyberxyz":{"status":"confirmed","status_label":"Advisory published","public_state":"full","exploitability_tier":"likely_exploitable","exploitability_tier_label":"Likely exploitable","first_detected_at":"2026-11-10T18:37:57.634835+00:00","fixed_versions":["flask-security@5.9.3","flask-security-too@5.9.3"],"upgrade_guidance":"A security fix was released in flask-security 5.9.3; flask-security-too 5.9.3. Upgrade each package to its fixed release on your line or later.","dispute":{"url":"/api/v1/disputes","subject_type":"advisory","subject_id":"XYZ-2026-00077","ecosystem":"pypi","note":"Think this record is wrong? Tell us; we respond within 2 business days."},"url":"https://packages.cyberxyz.io/xyz/XYZ-2026-00077","writeup":{"what":"Refresh tokens are documented as single use. The refresh path read the token family's generation, compared it, and then wrote the next generation, with no row lock and no update conditioned on the old value. Two overlapping requests with the same valid token could both pass the check, and each received new credentials. The reuse was not detected, so the family was not revoked.","impact":"Weaker reuse detection, not a new way in. An attacker must already hold a live refresh token and use it at the same moment as its owner. The reporter tested this with controlled timing on SQLite and did not measure how often the race occurs in a deployed application.","affected":"Applications on Flask-Security-Too 5.9.0 to 5.9.2 that turn refresh tokens on with `SECURITY_REFRESH_TOKEN=True`. The feature is off by default.","action":"Upgrade to Flask-Security-Too 5.9.3.","title":"Flask-Security-Too: two overlapping requests could both redeem one single-use refresh token","credit":"Reported to the maintainers by @nirodhav and fixed by the Flask-Security maintainers. Advisory: GHSA-vm9m-262m-x92p."},"exploitability_score":65,"severity":"low","cwe":"CWE-367","fix_commits":["3da03afeaaeb48896f52ccbf3e7d11b90202e802","bc85c9b6ff725deaccf309189b997b08315c89ef"],"feed_leads":[{"source":"ghsa","id":"GHSA-vm9m-262m-x92p","published":"2026-11-22T00:00:00+00:00","lead_seconds":969722}]},"cwe_ids":["CWE-367"]},"details":"## What was wrong\n\nRefresh tokens are documented as single use. The refresh path read the token family's generation, compared it, and then wrote the next generation, with no row lock and no update conditioned on the old value. Two overlapping requests with the same valid token could both pass the check, and each received new credentials. The reuse was not detected, so the family was not revoked.\n\n## Impact\n\nWeaker reuse detection, not a new way in. An attacker must already hold a live refresh token and use it at the same moment as its owner. The reporter tested this with controlled timing on SQLite and did not measure how often the race occurs in a deployed application.\n\n## Who is affected\n\nApplications on Flask-Security-Too 5.9.0 to 5.9.2 that turn refresh tokens on with `SECURITY_REFRESH_TOKEN=True`. The feature is off by default.\n\n## What to do\n\nUpgrade to Flask-Security-Too 5.9.3.\n\nReported to the maintainers by @nirodhav and fixed by the Flask-Security maintainers. Advisory: GHSA-vm9m-262m-x92p.","aliases":["GHSA-vm9m-262m-x92p"]}