Advisories for Pypi/Scitokens package

2026

SciTokens is vulnerable to SQL Injection in KeyCache

The KeyCache class in scitokens was vulnerable to SQL Injection because it used Python's str.format() to construct SQL queries with user-supplied data (such as issuer and key_id). This allowed an attacker to execute arbitrary SQL commands against the local SQLite database. Ran the POC below locally.