SecurityContext

CVE-2026-31827: Alienbin - NoSQL Injection

  • Cve: CVE-2026-31827
  • Name: Alienbin - NoSQL Injection
  • 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.
  • Impact: Attackers can delete all existing pastes by manipulating TTL index, causing data loss and denial of service.
  • Remediation: Update to the latest version that fixes TTL index handling or patch the /save endpoint to avoid resetting TTL index globally.
  • Vulnerability type: nosql_injection
  • Vulnerability impact: denial_of_service, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.1
  • Cvss 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Epss score: 0.00205
  • Epss percentile: 0.10468
  • Assignee: [email protected]
  • Published at: 2026-03-10T22:16:20Z
  • Age in days: 259
  • Modified at: 2026-06-17T10:34:31Z
  • References total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-31827
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-362Concurrent Execution using Shared Resource with Improper Synchronization

References

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

Projects

RepositoryLink kindsIndexedUrl
Blue-B/Alienbinsecurity_advisoryyes/v1/repositories/Blue-B/Alienbin

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts