Vulnerability GHSA-h5fq-653g-gxrm

Medium Risk
MEDIUM RISK
CVSS Score: 5.3
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
7 months ago
May 05, 2026 at 05:20 PM UTC
ots has a negative expire override that can bypass its secret retention policy
v0.1.0 - v1.21.4
v0.1.0 - v1.21.4

Summary

ots has a negative expire override that can bypass its secret retention policy

Details

Summary

The /api/create endpoint accepted negative expire query values. For the memory storage backend, negative values were passed to secret creation as a negative duration and treated as no expiry, allowing callers to create secrets that persisted longer than intended.

Impact

Unauthenticated users could bypass configured retention expectations for secrets they create by sending POST /api/create?expire=-1.

This does not allow reading or modifying secrets created by other users. Secrets remain one-time-read and, in the normal web flow, client-side encrypted.

Affected versions

Versions up to and including v1.21.4 are affected.

Patched versions

Fixed in v1.21.5.

Workarounds

Disable expiry overrides via disableExpiryOverride: true until upgrading.

Credit

Reported by Chai Cheng Xun via email.

Impacted packages

Timeline

Published
7 months ago
May 05, 2026 at 05:20 PM UTC
Last Modified
4 months ago
July 21, 2026 at 02:49 PM UTC