PT-2026-50780 · Hkuds · Nanobot

Gosulashivakumar

·

Published

2026-06-18

·

Updated

2026-06-18

·

CVE-2026-48716

CVSS v3.1

8.7

High

VectorAV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:H
Name of the Vulnerable Software and Affected Versions nanobot versions prior to 0.1.5.post4
Description 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 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 passed directly to the path.join() function. Because Node.js path.join() resolves .. components, an attacker can escape the intended media directory by sending a document with a crafted fileName. Since the attacker also controls the file content, this allows for an arbitrary file write on the system.
Recommendations Update to version 0.1.5.post4.

Fix

Path traversal

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-48716

Affected Products

Nanobot