# CVE-2026-31827: Alienbin: TTL Index Race Condition allows unauthorized deletion of other users data

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-03-10T21:39:58.148Z
- Modified: 2026-06-17T10:34:31.953Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Alienbin is an anonymous code and text sharing web service. In 1.0.0 and earlier, the /save endpoint in server.js drops and recreates the MongoDB TTL index on the entire post collection for every new paste submission. When User B submits a paste with a short TTL (e.g., 30 seconds), the TTL index is recreated with expireAfterSeconds: 30 for all documents in the collection. This causes User A's paste (originally set to 7 days) to be deleted after 30 seconds. An attacker can intentionally delete all existing pastes by repeatedly submitting pastes with ttlOption=30s.

(As written by CVE List.)

## Affected

- Blue-B Alienbin: <= 1.0.0

## References

- <https://github.com/Blue-B/Alienbin/security/advisories/GHSA-hqvr-6v89-gwff>

## Sources

- CVE List: [CVE-2026-31827](https://www.cve.org/CVERecord?id=CVE-2026-31827), CVE Terms of Use, modified 2026-03-11
- NVD: [CVE-2026-31827](https://nvd.nist.gov/vuln/detail/CVE-2026-31827), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-31827 · Whole record: https://cve.day/CVE-2026-31827.json · Rebuilt by cve.day 2026-11-25T22:59:15.679Z
