Skip to main content
VulnerabilityPublished

CVE-2026-31827: Blue-B Alienbin · Race Condition

Affects Blue-B AlienbinSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.1 High.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 4.0 base score
7.1High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 8% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
Blue-BAlienbinAffected
  • <=1.0.0
Fixed in–
GitHubblue-b/Alienbinpkg:github/blue-b/AlienbinOther threatsAffected
  • <=1.0.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2026-31827, organizations using Alienbin should implement the following specific measures: 1) Avoid dropping and recreating the MongoDB TTL index on the entire collection for each new paste submission. Instead, create a single TTL index with a fixed expireAfterSeconds value and manage per-document expiration using a dedicated field with MongoDB's TTL feature. 2) Implement application-level logic to set individual document expiration times without altering the global TTL index. 3) Restrict the ability to submit pastes with extremely short TTL values by enforcing minimum TTL thresholds or validating TTL inputs server-side. 4) Monitor and rate-limit paste submissions to prevent abuse through rapid repeated submissions that could trigger mass deletions. 5) Upgrade to a patched version of Alienbin once available or apply custom patches to fix the index recreation logic. 6) Regularly back up the paste collection to enable recovery from unintended deletions. 7) Audit and log paste submissions and TTL index changes to detect suspicious activity. These targeted mitigations address the root cause of the race condition and minimize the risk of exploitation.

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.

References

Community reviews

Loading reviews…