Vulnerabilities in pkg:npm/algoliasearch-helper

PACKAGE
Advisory Identifier: GHSA-529q-4j3p-7c5r
Advisory Summary

CVE-2025-3193 is a MODERATE (CVSS 5.9) algoliasearch-helper is vulnerable to prototype vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Algoliasearch helper libraries in the npm ecosystem. The issue involves algoliasearch-helper is vulnerable to prototype pollution in _merge(). Remediation is available by upgrading affected packages to version 3.11.2.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/algoliasearch-helper

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/algoliasearch-helper. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-529q-4j3p-7c5r CVE-2025-3193 MODERATE algoliasearch-helper is vulnerable to Prototype Pollution in _merge()
GHSA-vpf5-82c8-9v36 CVE-2021-23433 CRITICAL Prototype Pollution in algoliasearch-helper

CVE-2025-3193 at a Glance

CVE Identifier CVE-2025-3193
GHSA Identifier GHSA-529q-4j3p-7c5r
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Algoliasearch helper
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2025-3193

To remediate this vulnerability, upgrade all affected Algoliasearch helper dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

algoliasearch-helper fixed: 3.11.2
npm install algoliasearch-helper@3.11.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls algoliasearch-helper

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-3193, inspect your project dependencies using npm:

npm ls algoliasearch-helper

Analyze the terminal output to locate any version of Algoliasearch helper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.11.2), your application is affected.

Note: The npm ls algoliasearch-helper command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Algoliasearch helper, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Versions of the package algoliasearch-helper from 2.0.0-rc1 and before 3.11.2 are vulnerable to Prototype Pollution in the _merge() function in merge.js, which allows constructor.prototype to be written even though doing so throws an error. In the "extreme edge-case" that the resulting error is caught, code injected into the user-supplied search parameter may be exeucted. This is related to but distinct from the issue reported in [CVE-2021-23433](https://security.snyk.io/vuln/SNYK-JS-ALGOLIASEARCHHELPER-1570421). **NOTE:** This vulnerability is not exploitable in the default configuration of InstantSearch since searchParameters are not modifiable by users.

CVE-2025-3193 Affected Algoliasearch helper Versions

1 component(s)
Fixed Versions:
3.11.2
Product / Package Ecosystem Affected Versions Fixed Version
algoliasearch-helper
npm
≥ 2.0.0-rc1
< 3.11.2
3.11.2

References

Frequently Asked Questions

What is CVE-2025-3193?
CVE-2025-3193 is a security vulnerability in Algoliasearch helper involving algoliasearch-helper is vulnerable to Prototype Pollution in _merge() under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Algoliasearch helper versions are affected?
Affected versions include releases prior to 3.11.2 across affected packages: algoliasearch-helper.
What version fixes CVE-2025-3193?
Upgrading to 3.11.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is algoliasearch-helper affected?
Yes, algoliasearch-helper is affected in releases prior to 3.11.2. Upgrade your dependency to 3.11.2 or later.
What is the CVSS score of CVE-2025-3193?
CVE-2025-3193 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2025-3193?
CVE-2025-3193 is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.).
How can I check npm dependencies for CVE-2025-3193?
Run the dependency tree command: 'npm ls algoliasearch-helper'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-529q-4j3p-7c5r",
  "modified" : "2025-09-30T20:54:39Z",
  "published" : "2025-09-27T06:30:52Z",
  "aliases" : [ "CVE-2025-3193" ],
  "summary" : "algoliasearch-helper is vulnerable to Prototype Pollution in _merge()",
  "details" : "Versions of the package algoliasearch-helper from 2.0.0-rc1 and before 3.11.2 are vulnerable to Prototype Pollution in the _merge() function in merge.js, which allows constructor.prototype to be written even though doing so throws an error. In the \"extreme edge-case\" that the resulting error is caught, code injected into the user-supplied search parameter may be exeucted.\n\nThis is related to but distinct from the issue reported in [CVE-2021-23433](https://security.snyk.io/vuln/SNYK-JS-ALGOLIASEARCHHELPER-1570421).\n\n**NOTE:** This vulnerability is not exploitable in the default configuration of InstantSearch since searchParameters are not modifiable by users.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "algoliasearch-helper"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0-rc1"
      }, {
        "fixed" : "3.11.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-3193"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/algolia/algoliasearch-helper-js/issues/922"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/algolia/algoliasearch-helper-js/commit/776dff23c87b0902e554e02a8c2567d2580fe12a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/algolia/algoliasearch-helper-js"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-JS-ALGOLIASEARCHHELPER-3318396"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-30T20:54:39Z",
    "nvd_published_at" : "2025-09-27T05:15:30Z"
  }
}