{"id":"CVE-2026-31827","aliases":["CVE-2026-31827"],"related":[],"kind":"vulnerability","state":"published","title":"Alienbin: TTL Index Race Condition allows unauthorized deletion of other users data","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Alienbin es un servicio web anónimo para compartir código y texto. En 1.0.0 y anteriores, el endpoint /save en server.js elimina y recrea el índice TTL de MongoDB en toda la colección post para cada nuevo envío de paste. Cuando el Usuario B envía un paste con un TTL corto (por ejemplo, 30 segundos), el índice TTL se recrea con expireAfterSeconds: 30 para todos los documentos de la colección. Esto provoca que el paste del Usuario A (originalmente configurado para 7 días) sea eliminado después de 30 segundos. Un atacante puede eliminar intencionadamente todos los pastes existentes al enviar repetidamente pastes con ttlOption=30s.","source":"nvd"}],"published":"2026-03-10T21:39:58.148Z","modified":"2026-06-17T10:34:31.953Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":7.1,"rating":"HIGH"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"version":"<= 1.0.0","status":"affected"}],"vendor":"Blue-B","product":"Alienbin","source":"cvelist"}],"references":[{"url":"https://github.com/Blue-B/Alienbin/security/advisories/GHSA-hqvr-6v89-gwff","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-11T15:51:52.996Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31827","url":"https://www.cve.org/CVERecord?id=CVE-2026-31827","licence":"CVE Terms of Use","modified":"2026-03-11T15:59:20.745Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31827","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31827","licence":"Public domain","modified":"2026-06-17T10:34:31.953Z"}],"updatedAt":"2026-11-25T22:59:15.679Z","epss":{"score":0.00205,"percentile":0.1112,"date":"2026-12-01T12:00:22.000Z"}}