{"id":"CVE-2026-48716","aliases":["CVE-2026-48716"],"related":[],"kind":"vulnerability","state":"published","title":"nanobot: Path traversal via unsanitized WhatsApp document fileName enables arbitrary file write","summary":"nanobot is a personal AI assistant. In versions 0.1.5.post3 and prior, the WhatsApp bridge in bridge/src/whatsapp.ts constructs a filesystem path using the fileName field from an incoming WhatsApp document message without sanitization. The WhatsApp bridge downloads media attachments and writes them to disk using a filename derived from the sender's message via documentMessage.fileName, which is concatenated with a prefix and its raw value is passed directly to path.join(mediaDir, outFilename). Node.js path.join resolves .. components, allowing an attacker to escape the intended media/ directory by sending a document with a crafted fileName such as ../../../.ssh/authorized_keys. Because the attacker also controls the file content (the downloaded buffer), this is a write-anywhere primitive — both path and content are attacker-controlled. A fix for this issue is planned for version 0.1.5.post4.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"nanobot is a personal AI assistant. In versions 0.1.5.post3 and prior, the WhatsApp bridge in bridge/src/whatsapp.ts constructs a filesystem path using the fileName field from an incoming WhatsApp document message without sanitization. The WhatsApp bridge downloads media attachments and writes them to disk using a filename derived from the sender's message via documentMessage.fileName, which is concatenated with a prefix and its raw value is passed directly to path.join(mediaDir, outFilename). Node.js path.join resolves .. components, allowing an attacker to escape the intended media/ directory by sending a document with a crafted fileName such as ../../../.ssh/authorized_keys. Because the attacker also controls the file content (the downloaded buffer), this is a write-anywhere primitive — both path and content are attacker-controlled. A fix for this issue is planned for version 0.1.5.post4.","source":"cvelist"},{"lang":"es","text":"nanobot es un asistente personal de IA. En las versiones 0.1.5.post3 y anteriores, el puente de WhatsApp en bridge/src/whatsapp.ts construye una ruta del sistema de archivos utilizando el campo fileName de un mensaje de documento de WhatsApp entrante sin sanitización. El puente de WhatsApp descarga archivos adjuntos multimedia y los escribe en el disco utilizando un nombre de archivo derivado del mensaje del remitente a través de documentMessage.fileName, el cual se concatena con un prefijo y su valor sin procesar se pasa directamente a path.join(mediaDir, outFilename). Node.js path.join resuelve los componentes .., permitiendo a un atacante escapar del directorio media/ previsto enviando un documento con un fileName manipulado como .. / .. / .. / .ssh/authorized_keys. Debido a que el atacante también controla el contenido del archivo (el búfer descargado), esto es una primitiva de escritura en cualquier lugar - tanto la ruta como el contenido están controlados por el atacante. Se planea una solución para este problema para la versión 0.1.5.post4.","source":"nvd"}],"published":"2026-06-18T18:46:28.599Z","modified":"2026-10-25T23:10:00.167Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:H","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:H","score":8.7,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"<= 0.1.5.post3","status":"affected"}],"vendor":"HKUDS","product":"nanobot","source":"cvelist"}],"references":[{"url":"https://github.com/HKUDS/nanobot/security/advisories/GHSA-3f63-vcp3-hvqr","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-06-22T15:40:56.174Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-48716","url":"https://www.cve.org/CVERecord?id=CVE-2026-48716","licence":"CVE Terms of Use","modified":"2026-06-22T15:41:03.264Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-48716","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48716","licence":"Public domain","modified":"2026-10-25T23:10:00.167Z"}],"updatedAt":"2026-11-25T22:59:25.170Z","epss":{"score":0.00326,"percentile":0.27719,"date":"2026-12-01T12:00:22.000Z"}}