Skip to content

HackerOne

Node.js third-party modules

Every publicly disclosed report for Node.js third-party modules, what kind of bugs they were and what was paid.

disclosed reports
305
with a public bounty
1
median public bounty
$250
public bounties in all
$250
Find Node.js third-party modules on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Node.js third-party modules chose to make public.

RCE

Server-side Template Injection in lodash.js

The lodash _.template function does not properly validate user-supplied input, allowing an attacker who controls a parameter to inject JavaScript code that is executed on the server. This can lead to remote code execution.

Node.js third-party modules

High
Prototype pollution

Prototype Pollution Vulnerability in noble Package

The noble Node.js Bluetooth Low Energy module exposes a method that lets an attacker inject arbitrary properties onto Object.prototype. The reporter suspects the values could be controlled remotely over Bluetooth, but only demonstrated a local call.

Node.js third-party modules

High
SSRF

Bypass of SSRF Vulnerability

The oEmbed fetch function in Ghost only blocked literal localhost, IPv4 and IPv6 hostnames, so a hostname that resolves to a loopback or internal address slipped past the check. An authenticated blog user could then make the server send GET requests to internal services such as cloud metadata endpoints.

Node.js third-party modules

High
Prototype pollution

[i18next] Prototype pollution attack

The i18next library's deepExtend function only blocks the __proto__ property but not constructor, allowing an attacker to pollute Object.prototype via addResourceBundle with attacker-controlled resources. This could lead to denial of service, cross-site scripting, or remote code execution depending on how the library is used.

Node.js third-party modules

High
RCE

[wireguard-wrapper] Command Injection via insecure command concatenation

The wireguard-wrapper module passes user input directly into a shell command without sanitisation, allowing an attacker to execute arbitrary commands on the victim's machine. By supplying a crafted device name, an attacker can run any command with the privileges of the Node.js process.

Node.js third-party modules

Critical
Prototype pollution

[plain-object-merge] Prototype pollution

The merge function in the plain-object-merge npm package copies a __proto__ key from attacker-supplied input onto Object.prototype, so every object in the process gains the injected property. Depending on how the host application uses objects, this could lead to denial of service, property injection or remote code execution.

Node.js third-party modules

High
CSRF

[socket.io] Cross-Site Websocket Hijacking

The socket.io library's origin check can be bypassed by crafting an Origin header with special characters like backtick or dollar sign, which the library interprets as the allowed origin while some browsers treat it as a different domain. An attacker can then perform cross-site WebSocket hijacking to send and receive messages on behalf of a victim.

Node.js third-party modules

High
RCE

[curling] Remote Code Execution

The curling npm module used an insufficient regular expression to block dangerous characters before passing a command to curl, allowing an attacker to inject curl options. An attacker could read or overwrite arbitrary files on the host.

Node.js third-party modules

Critical
RCE

[imagickal] Remote Code Execution

The imagickal npm module passed user-supplied input into ImageMagick shell commands without sanitisation, so a crafted filename could inject extra shell commands. An attacker who controls the input could run arbitrary commands on the victim's machine.

Node.js third-party modules

Critical
RCE

[arpping] Remote Code Execution

The arpping npm package builds shell commands from caller-supplied host values without sanitising them, so a crafted host string runs extra commands. An attacker who can influence the input passed to the ping or arp functions could execute arbitrary commands on the machine running the module.

Node.js third-party modules

Critical
Prototype pollution

[chart.js] Prototype pollution

Chart.js recursively merges attacker-controlled objects into its configuration, allowing injection of properties onto Object.prototype. This can lead to cross-site scripting in some applications.

Node.js third-party modules

Low
RCE

[last-commit-log] Command Injection

The last-commit-log npm module builds a shell command by inserting the value of the GIT_DIR environment variable without quoting it. An attacker who can set that variable can run arbitrary commands on the host.

Node.js third-party modules

High
Prototype pollution

[@firebase/util] Prototype pollution

The deepCopy and deepExtend helper functions in the @firebase/util package let a crafted object add or change properties on the shared Object prototype, so those properties then appear on every object. Depending on how the library is used, this could lead to denial of service, property injection or remote code execution.

Node.js third-party modules

High
RCE

[systeminformation] Command Injection via insecure command formatting

The systeminformation package passed user-supplied URLs into a shell command without proper escaping, allowing an attacker to inject curl options that overwrite a JavaScript file in the package. After overwriting that file, the attacker could execute arbitrary OS commands.

Node.js third-party modules

Critical
Path traversal

[node-downloader-helper] Path traversal via Content-Disposition header

The node-downloader-helper library did not sanitise the filename taken from a server's Content-Disposition header, so a malicious server could use ../ sequences to write the downloaded file outside the intended directory. The reporter claims this could lead to remote code execution by placing an executable in a Windows startup folder or an authorised_keys file on Linux.

Node.js third-party modules

Medium
Prototype pollution

[ts-dot-prop] Prototype Pollution

The set function in ts-dot-prop allows setting properties on Object.prototype via a __proto__ path, enabling prototype pollution. An attacker could modify prototype behaviour, potentially leading to sensitive information disclosure, denial of service, or remote code execution depending on the application.

Node.js third-party modules

Medium
RCE

[gfc] Command Injection via insecure command formatting

The gfc module builds a shell command by concatenating user-supplied options, such as the commit message, without sanitisation. An attacker who can control these options could execute arbitrary commands on the victim's machine.

Node.js third-party modules

Critical
Prototype pollution

[nested-property] Prototype Pollution

The nested-property npm module allows an attacker to modify Object.prototype via its set function when given a path like '__proto__.b'. This could lead to denial of service or remote code execution in some cases.

Node.js third-party modules

Medium
RCE

[create-git] RCE via insecure command formatting

The create-git NPM module passed user-supplied input directly into a shell command without validation, allowing an attacker to run arbitrary commands alongside git. A proof of concept showed that a crafted remote origin value could trigger a separate network request to a local endpoint.

Node.js third-party modules

Critical
Prototype pollution

[json8-merge-patch] Prototype Pollution

The apply function in json8-merge-patch does not restrict access to object prototypes, allowing an attacker to modify prototype behaviour. This could lead to sensitive information disclosure, denial of service, or remote code execution depending on how the library is used.

Node.js third-party modules

High
RCE

[freespace] Command Injection due to Lack of Sanitization

The freespace npm module passes a user-supplied mount point directly into a shell command without proper sanitisation, allowing an attacker to inject and execute arbitrary commands on Unix systems. This could lead to information gathering, system enumeration, and further execution of scripts or binaries.

Node.js third-party modules

Medium
XSS

[tianma-static] Security issue with XSS.

The tianma-static module serves uploaded files with a content type derived from the file extension, so an uploaded HTML file is returned as text/html and its scripts execute. It also reflects a manipulated pathname into the response without proper encoding, allowing HTML injection and reflected XSS.

Node.js third-party modules

XSS

[m-server] XSS reflected because path does not escapeHtml

The m-server static file server builds its directory listing HTML without escaping the request path, so a crafted URL containing HTML markup is reflected into the page. An attacker could get script to run in a victim's browser in the server's origin.

Node.js third-party modules

XSS

[snekserve] Stored XSS via filenames HTML formatted

The snekserve static file server places directory entry names into its directory listing page without proper validation, so a filename containing HTML markup is rendered as markup. An attacker who can create a file or folder with a crafted name could get script to run in the browser of anyone who views the listing.

Node.js third-party modules

Medium