Repository navigation
v1.37.1
Three security fixes, two of them from a contributor's fork. Please upgrade.
Fixed
- An expired MCP token kept working on Python 3.10 (found through a downstream fork's CI notes). The admin portal accepts an expiry written as
2026-12-31T23:59:59Zand stores it as typed, butdatetime.fromisoformatonly accepts theZsuffix from Python 3.11. On 3.10 - the interpreter Ubuntu 22.04 ships - parsing raised, the runtime check logged "invalid expires_at" and then let the token through. The expiry is now parsed the same way on every supported interpreter (Znormalised, naive timestamps read as UTC), and an expiry the server cannot read refuses the token instead of ignoring it; the portal's token list shows such a token as Expired rather than Active. Verified underpython:3.10-slim: the existingtest_expired_tokenfails on the old code and passes now. zabbix_raw_api_callletmediatype.testthrough on a read-only server (by @ccurtis-kepler, from hisfix/raw-call-mediatype-testbranch). The fallback whitelist of read-only method suffixes contained.test;mediatype.testsends a real message through the media type. The suffix is gone;userdirectory.teststays read-only through its own tool definition.action_confirmexecuted on the authorization checked ataction_preparetime (by @ccurtis-kepler, from hisfix/action-confirm-recheckbranch). The confirmation token was bound to the caller and expired after five minutes, but a token or server switched to read-only in between still wrote. The confirm call now re-runs the token authorization and the server's write check itself.
Verified
- 495 unit + e2e tests, all passing on Python 3.14 and
tests.test_admin+ the new expiry tests on 3.10 in Docker. 17 new: the expiry parser (Z, naive, date-only, explicit offset, garbage), the store refusing an expiredZstamp, a naive stamp and an unreadable one while accepting a future one and no expiry at all, the Expired badge,mediatype.testrefused on a read-only server, andaction_confirmrefusing after the server or the token turned read-only. - CRUD smoke against live Zabbix 7.4; installer matrix 18/18.