Vulnerabilities

14 via 23 paths

Dependencies

366

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 14
  • 1
Severity
  • 1
  • 7
  • 7
Status
  • 15
  • 0
  • 0

critical severity
new

Improper Authentication

  • Vulnerable module: parse-server
  • Introduced through: parse-server@9.10.0

Detailed paths

  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0
    Remediation: Upgrade to parse-server@9.10.1.

Overview

parse-server is a version of the Parse backend that can be deployed to any infrastructure that can run Node.js.

Affected versions of this package are vulnerable to Improper Authentication in the LDAP authentication process. An attacker can gain unauthorized access to user accounts by supplying a known directory username with an empty password, which may result in account takeover. This is only exploitable if the LDAP authentication adapter is enabled and the directory allows unauthenticated simple bind (such as Active Directory in its default configuration).

Remediation

Upgrade parse-server to version 8.6.88, 9.10.1-alpha.7 or higher.

References

high severity

Improper Verification of Cryptographic Signature

  • Vulnerable module: node-forge
  • Introduced through: parse-server@9.10.0

Detailed paths

  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › @parse/push-adapter@8.4.0 › @parse/node-apn@8.0.0 › node-forge@1.4.0
  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › @parse/push-adapter@8.4.0 › firebase-admin@13.7.0 › node-forge@1.4.0

Overview

node-forge is a JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilities.

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature in rsa.js, whose DigestInfo validation checks the outer element count (obj.value.length !== 2) but never verifies the element count of the inner DigestAlgorithm SEQUENCE, so the ASN.1 parser accepts extra children that are ignored during digest extraction. An attacker can forge a signature that verifies as valid for an arbitrary message, without the private key, by fixing the target digest at the block boundaries and filling roughly 314 garbage bytes inside the DigestAlgorithm structure to absorb the mathematical residue. This only affects verification against RSA keys with a low public exponent such as e=3, and although _parseAllDigestBytes defaults to true and rejects trailing garbage, it does not detect this interior padding.

Note: This is a bypass of the fix for the vulnerability described in CVE-2026-33894 and, as of this publication, has not been acknowledged by project maintainers.

Remediation

A fix was pushed into the master branch but not yet published.

References

high severity
new

Improper Neutralization of Special Elements in Data Query Logic

  • Vulnerable module: parse-server
  • Introduced through: parse-server@9.10.0

Detailed paths

  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0
    Remediation: Upgrade to parse-server@9.10.1.

Overview

parse-server is a version of the Parse backend that can be deployed to any infrastructure that can run Node.js.

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Data Query Logic via operator injection in the handleInstallation function in src/RestWrite.js, where client-supplied fields deviceToken, installationId, and appIdentifier are embedded directly into privileged database queries used for device token deduplication without type enforcement. An unauthenticated attacker can supply a query operator object (such as {"$ne": null}) in place of a string value, causing the deduplication logic to match and delete installation records far beyond those the client identified, resulting in mass unauthenticated deletion of push notification installation records.

Remediation

Upgrade parse-server to version 8.6.90, 9.10.1-alpha.9 or higher.

References

high severity

Asymmetric Resource Consumption (Amplification)

  • Vulnerable module: ws
  • Introduced through: parse@8.6.0 and parse-server@9.10.0

Detailed paths

  • Introduced through: parse-server-example@parse-community/parse-server-example › parse@8.6.0 › ws@8.20.0
    Remediation: Upgrade to parse@8.6.1.
  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › ws@8.20.0
    Remediation: Upgrade to parse-server@9.10.1.
  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › parse@8.6.0 › ws@8.20.0
    Remediation: Upgrade to parse-server@9.10.1.
  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › @parse/push-adapter@8.4.0 › parse@8.5.0 › ws@8.19.0
    Remediation: Upgrade to parse-server@9.10.1.

Overview

ws is a simple to use websocket client, server and console for node.js.

Affected versions of this package are vulnerable to Asymmetric Resource Consumption (Amplification) when handling a large number of very small fragments and data chunks. An attacker can cause excessive memory allocation and OOM by sending a high volume of tiny WebSocket frames

Workaround

This vulnerability can be mitigated by lowering the value of the maxPayload option.

PoC

import { WebSocket, WebSocketServer } from 'ws';

const wss = new WebSocketServer({ port: 0 }, function () {
  const data = Buffer.alloc(1);
  const options = { fin: false };
  const { port } = wss.address();
  const ws = new WebSocket(`ws://localhost:${port}`);

  ws.on('open', function () {
    (function send() {
      ws.send(data, options, function (err) {
        if (err) return;
        send();
      });
    })();
  });

  ws.on('error', console.error);
  ws.on('close', function (code, reason) {
    console.log(`client close - code: ${code} reason: ${reason.toString()}`);
  });
});

wss.on('connection', function (ws) {
  ws.on('error', console.error);
  ws.on('close', function (code, reason) {
    console.log(`server close - code: ${code} reason: ${reason.toString()}`);
  });
});

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade ws to version 5.2.5, 6.2.4, 7.5.11, 8.21.0 or higher.

References

high severity
new

Prototype Pollution

  • Vulnerable module: @graphql-tools/utils
  • Introduced through: parse-server@9.10.0

Detailed paths

  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › @graphql-tools/merge@9.1.7 › @graphql-tools/utils@11.2.2
  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › @graphql-tools/schema@10.0.31 › @graphql-tools/utils@11.2.2
  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › @graphql-tools/utils@11.0.0

Overview

@graphql-tools/utils is a Common package containing utils and types for GraphQL tools

Affected versions of this package are vulnerable to Prototype Pollution via the mergeDeep function, which fails to block reserved property keys such as __proto__, constructor, and prototype before recursively merging source objects into an output object. An attacker who controls a source object passed to mergeDeep can pollute Object.prototype, potentially affecting all objects in the process and enabling further exploitation.

Details

Prototype Pollution is a vulnerability affecting JavaScript. Prototype Pollution refers to the ability to inject properties into existing JavaScript language construct prototypes, such as objects. JavaScript allows all Object attributes to be altered, including their magical attributes such as __proto__, constructor and prototype. An attacker manipulates these attributes to overwrite, or pollute, a JavaScript application object prototype of the base object by injecting other values. Properties on the Object.prototype are then inherited by all the JavaScript objects through the prototype chain. When that happens, this leads to either denial of service by triggering JavaScript exceptions, or it tampers with the application source code to force the code path that the attacker injects, thereby leading to remote code execution.

There are two main ways in which the pollution of prototypes occurs:

  • Unsafe Object recursive merge

  • Property definition by path

Unsafe Object recursive merge

The logic of a vulnerable recursive merge function follows the following high-level model:

merge (target, source)

  foreach property of source

    if property exists and is an object on both the target and the source

      merge(target[property], source[property])

    else

      target[property] = source[property]

When the source object contains a property named __proto__ defined with Object.defineProperty() , the condition that checks if the property exists and is an object on both the target and the source passes and the merge recurses with the target, being the prototype of Object and the source of Object as defined by the attacker. Properties are then copied on the Object prototype.

Clone operations are a special sub-class of unsafe recursive merges, which occur when a recursive merge is conducted on an empty object: merge({},source).

lodash and Hoek are examples of libraries susceptible to recursive merge attacks.

Property definition by path

There are a few JavaScript libraries that use an API to define property values on an object based on a given path. The function that is generally affected contains this signature: theFunction(object, path, value)

If the attacker can control the value of “path”, they can set this value to __proto__.myValue. myValue is then assigned to the prototype of the class of the object.

Types of attacks

There are a few methods by which Prototype Pollution can be manipulated:

Type Origin Short description
Denial of service (DoS) Client This is the most likely attack.
DoS occurs when Object holds generic functions that are implicitly called for various operations (for example, toString and valueOf).
The attacker pollutes Object.prototype.someattr and alters its state to an unexpected value such as Int or Object. In this case, the code fails and is likely to cause a denial of service.
For example: if an attacker pollutes Object.prototype.toString by defining it as an integer, if the codebase at any point was reliant on someobject.toString() it would fail.
Remote Code Execution Client Remote code execution is generally only possible in cases where the codebase evaluates a specific attribute of an object, and then executes that evaluation.
For example: eval(someobject.someattr). In this case, if the attacker pollutes Object.prototype.someattr they are likely to be able to leverage this in order to execute code.
Property Injection Client The attacker pollutes properties that the codebase relies on for their informative value, including security properties such as cookies or tokens.
For example: if a codebase checks privileges for someuser.isAdmin, then when the attacker pollutes Object.prototype.isAdmin and sets it to equal true, they can then achieve admin privileges.

Affected environments

The following environments are susceptible to a Prototype Pollution attack:

  • Application server

  • Web server

  • Web browser

How to prevent

  1. Freeze the prototype— use Object.freeze (Object.prototype).

  2. Require schema validation of JSON input.

  3. Avoid using unsafe recursive merge functions.

  4. Consider using objects without prototypes (for example, Object.create(null)), breaking the prototype chain and preventing pollution.

  5. As a best practice use Map instead of Object.

For more information on this vulnerability type:

Arteau, Olivier. “JavaScript prototype pollution attack in NodeJS application.” GitHub, 26 May 2018

Remediation

Upgrade @graphql-tools/utils to version 12.0.1 or higher.

References

high severity

Improper Removal of Sensitive Information Before Storage or Transfer

  • Vulnerable module: follow-redirects
  • Introduced through: parse-server@9.10.0

Detailed paths

  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › follow-redirects@1.15.11
    Remediation: Upgrade to parse-server@9.10.1.

Overview

Affected versions of this package are vulnerable to Improper Removal of Sensitive Information Before Storage or Transfer in the cross-domain redirects that do not strip custom authentication headers (such as X-API-Key, X-Auth-Token, Api-Key, Token). An attacker can obtain sensitive authentication headers by triggering a cross-domain redirect that causes custom authentication headers to be forwarded to an attacker-controlled domain.

Remediation

Upgrade follow-redirects to version 1.16.0 or higher.

References

high severity
new

Improper Authentication

  • Vulnerable module: parse-server
  • Introduced through: parse-server@9.10.0

Detailed paths

  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0
    Remediation: Upgrade to parse-server@9.10.1.

Overview

parse-server is a version of the Parse backend that can be deployed to any infrastructure that can run Node.js.

Affected versions of this package are vulnerable to Improper Authentication via the password login flow in UsersRouter.js when a code-based auth adapter is in use. An attacker with a valid account can supply an unverified third-party auth provider identity during password-based login, causing the server to accept that identity without running the adapter's credential verification (beforeFind) step. This allows the attacker to link or assume an auth provider identity that belongs to another user, bypassing authentication controls and gaining unauthorized read and write access to that user's data.

Remediation

Upgrade parse-server to version 8.6.91, 9.10.1-alpha.10 or higher.

References

high severity
new

Access Control Bypass

  • Vulnerable module: parse-server
  • Introduced through: parse-server@9.10.0

Detailed paths

  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0
    Remediation: Upgrade to parse-server@9.10.1.

Overview

parse-server is a version of the Parse backend that can be deployed to any infrastructure that can run Node.js.

Affected versions of this package are vulnerable to Access Control Bypass via the LiveQuery subsystem in ParseLiveQueryServer.ts, which fails to load role memberships before evaluating role-scoped protectedFields groups. When a subscriber's session token is absent from the subscribe frame, the server resolves identity against an empty Auth.userRoles list, causing every role: group in protectedFields to be silently skipped. As a result, an authenticated attacker can receive LiveQuery events that include fields the REST API would have stripped for the same caller.

Remediation

Upgrade parse-server to version 8.6.89, 9.10.1-alpha.8 or higher.

References

medium severity

Server-side Request Forgery (SSRF)

  • Vulnerable module: ip-address
  • Introduced through: parse-server@9.10.0

Detailed paths

  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › express-rate-limit@8.3.1 › ip-address@10.1.0
    Remediation: Upgrade to parse-server@9.10.1.

Overview

ip-address is an A library for parsing IPv4 and IPv6 IP addresses in node and the browser.

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) through improper handling of IPv4 addresses with leading zeros in the Address4. An attacker can bypass network trust-boundary checks by submitting specially crafted IP addresses that are interpreted differently by the library and the underlying network resolver, potentially allowing unauthorized access to internal resources.

Remediation

Upgrade ip-address to version 10.3.1 or higher.

References

medium severity

Use of Uninitialized Resource

  • Vulnerable module: ws
  • Introduced through: parse@8.6.0 and parse-server@9.10.0

Detailed paths

  • Introduced through: parse-server-example@parse-community/parse-server-example › parse@8.6.0 › ws@8.20.0
    Remediation: Upgrade to parse@8.6.1.
  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › ws@8.20.0
    Remediation: Upgrade to parse-server@9.10.1.
  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › parse@8.6.0 › ws@8.20.0
    Remediation: Upgrade to parse-server@9.10.1.
  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › @parse/push-adapter@8.4.0 › parse@8.5.0 › ws@8.19.0
    Remediation: Upgrade to parse-server@9.10.1.

Overview

ws is a simple to use websocket client, server and console for node.js.

Affected versions of this package are vulnerable to Use of Uninitialized Resource in the websocket.close() implementation in the Sender class, which exposes uninitialized memory when a TypedArray is provided as the reason argument.

Note: The project maintainers note that this "flaw is only exploitable through misuse that is unlikely in practice".

PoC

import { deepStrictEqual } from 'node:assert';
import { WebSocket, WebSocketServer } from 'ws';

const wss = new WebSocketServer(
  { port: 0, skipUTF8Validation: true },
  function () {
    const { port } = wss.address();
    const ws = new WebSocket(`ws://localhost:${port}`, {
      skipUTF8Validation: true
    });

    ws.on('close', function (code, reason) {
      deepStrictEqual(reason, Buffer.alloc(80));
    });
  }
);

wss.on('connection', function (ws) {
  ws.close(1000, new Float32Array(20));
});

Remediation

Upgrade ws to version 8.20.1 or higher.

References

medium severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: ip-address
  • Introduced through: parse-server@9.10.0

Detailed paths

  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › express-rate-limit@8.3.1 › ip-address@10.1.0
    Remediation: Upgrade to parse-server@9.10.1.

Overview

ip-address is an A library for parsing IPv4 and IPv6 IP addresses in node and the browser.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the Address6.isValid() method (and the Address4 constructor) when parsing an oversized input string. The bad-character diagnostic wraps every offending character in an HTML <span> element, so an N-byte string of punctuation produces approximately 106N bytes of output and triggers a synchronous String.replace over the entire result. An 8 MiB input takes roughly 529 ms and 895 MB of memory, a 16 MiB input causes a RangeError by exceeding V8's maximum string length, and a 32 MiB input causes V8 to abort the process entirely with a fatal invalid-size error.

Note: Material impact occurs only when an application accepts a very large attacker-controlled field and passes it to Address6 or Address4 parsing without an earlier length bound.

Remediation

Upgrade ip-address to version 10.7.1 or higher.

References

medium severity
new

Improper Validation of Specified Type of Input

  • Vulnerable module: ip-address
  • Introduced through: parse-server@9.10.0

Detailed paths

  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › express-rate-limit@8.3.1 › ip-address@10.1.0
    Remediation: Upgrade to parse-server@9.10.1.

Overview

ip-address is an A library for parsing IPv4 and IPv6 IP addresses in node and the browser.

Affected versions of this package are vulnerable to Improper Validation of Specified Type of Input via isHostInSubnet() (and isInSubnet() which delegates to it), which compares masked binary strings without first verifying that both addresses belong to the same address family. Because Address4 pads its binary representation to 32 bits and Address6 pads to 128 bits, leading bit sequences can coincide across families, causing an IPv6 address to be incorrectly reported as contained within an IPv4 subnet and vice versa (for example, a00::1 is evaluated as inside 10.0.0.0/8). An attacker who controls an IP address value passed to a subnet membership check can bypass trust-boundary decisions such as SSRF allow/deny filters by supplying an address of the opposite family.

Remediation

Upgrade ip-address to version 10.7.1 or higher.

References

medium severity
new

Incorrect Behavior Order

  • Vulnerable module: ip-address
  • Introduced through: parse-server@9.10.0

Detailed paths

  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › express-rate-limit@8.3.1 › ip-address@10.1.0
    Remediation: Upgrade to parse-server@9.10.1.

Overview

ip-address is an A library for parsing IPv4 and IPv6 IP addresses in node and the browser.

Affected versions of this package are vulnerable to Incorrect Behavior Order via the isLinkLocal() method, which incorrectly compared only the first 64 bits of an IPv6 address against the fixed pattern fe80:0:0:0, effectively recognising only fe80::/64 as link-local. Addresses within the full fe80::/10 range defined by RFC 4291 §2.4 - such as fe81::1, febf::1, or fe80:0:0:1::1 - are incorrectly classified as non-link-local, causing the library to disagree with itself because getType() and getScope() already matched the correct /10 subnet. An attacker can exploit this inconsistency to bypass link-local address checks in applications that rely on isLinkLocal() for access control or routing decisions.

Remediation

Upgrade ip-address to version 10.5.1 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: ip-address
  • Introduced through: parse-server@9.10.0

Detailed paths

  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › express-rate-limit@8.3.1 › ip-address@10.1.0
    Remediation: Upgrade to parse-server@9.10.1.

Overview

ip-address is an A library for parsing IPv4 and IPv6 IP addresses in node and the browser.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the group, link, and spanAll functions, as well as the parseMessage field of thrown errors. An attacker can execute arbitrary JavaScript in the context of the application by supplying crafted input that is rendered as HTML. This is only exploitable if untrusted input is passed to the relevant functions and their output is rendered as HTML (e.g., via innerHTML).

Workaround

This vulnerability can be mitigated by not passing untrusted input to the constructor, never rendering the output of the affected functions or error fields as HTML, treating these values as text only, sanitizing output with DOMPurify before inserting into the DOM, or validating input to reject zone identifiers or invalid characters.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade ip-address to version 10.1.1 or higher.

References

medium severity

MPL-2.0 license

  • Module: web-push
  • Introduced through: parse-server@9.10.0

Detailed paths

  • Introduced through: parse-server-example@parse-community/parse-server-example › parse-server@9.10.0 › @parse/push-adapter@8.4.0 › web-push@3.6.7

MPL-2.0 license