Vulnerabilities in pkg:npm/@opensearch-project/opensearch

PACKAGE
Advisory Summary

GHSA-27f5-xjrr-q9ff is a CRITICAL (CVSS 9.6) malware vulnerability (CWE-506: Embedded Malicious Code) affecting @opensearch project/opensearch libraries in the npm ecosystem. The issue involves malware in @opensearch-project/opensearch. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@opensearch-project/opensearch

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-27f5-xjrr-q9ff - CRITICAL Malware in @opensearch-project/opensearch

GHSA-27f5-xjrr-q9ff at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-27f5-xjrr-q9ff
Severity CRITICAL
CVSS v3.1 Base Score 9.6
CWE Classification CWE-506: Embedded Malicious Code
Affected Product @opensearch project/opensearch
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.6

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

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

How to Fix GHSA-27f5-xjrr-q9ff

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

@opensearch-project/opensearch fixed: Latest secure release
npm install @opensearch-project/opensearch@Latest secure release
@opensearch-project/opensearch fixed: Latest secure release
npm install @opensearch-project/opensearch@Latest secure release
@opensearch-project/opensearch fixed: Latest secure release
npm install @opensearch-project/opensearch@Latest secure release
@opensearch-project/opensearch fixed: Latest secure release
npm install @opensearch-project/opensearch@Latest secure release
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 @opensearch-project/opensearch

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-27f5-xjrr-q9ff, inspect your project dependencies using npm:

npm ls @opensearch-project/opensearch

Analyze the terminal output to locate any version of @opensearch project/opensearch in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The npm ls @opensearch-project/opensearch 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-506: Embedded Malicious Code, where the product contains code that appears to be malicious in nature. In @opensearch project/opensearch, 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

## Overview The OpenSearch Project has sustained a security incident involving an external actor gaining force-push permissions within the project's CI infrastructure to embed malicious packages into four release versions of `@opensearch-project/opensearch`. Users are instructed to immediately take actions recommended in the **Remediation** section of this advisory. ## Affected Versions **Package**: `@opensearch-project/opensearch` | Version | Published (UTC) | Published (America/New_York) | |---------|----------------|------------------------------| | 3.5.3 | 2026-05-12T00:47:39Z | May 11, 2026, 8:47:39 PM EDT | | 3.6.2 | 2026-05-12T00:29:34Z | May 11, 2026, 8:29:34 PM EDT | | 3.7.0 | 2026-05-12T00:42:29Z | May 11, 2026, 8:42:29 PM EDT | | 3.8.0 | 2026-05-12T00:43:54Z | May 11, 2026, 8:43:54 PM EDT | ## Remediation Any computer that has these package versions installed or updated between 00:00 UTC 12 May 2026 (8:00 PM EDT 11 May 2026) and 10:00 UTC 12 May 2026 (6:00 AM EDT 12 May 2026) should be considered fully compromised. Steps should immediately be taken to prevent further compromise. - **All secrets and keys** stored on that computer should be rotated immediately from an alternate system. - The affected packages should be removed immediately, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it. ## References [GHSA-g7cv-rxg3-hmpx](https://github.com/TanStack/router/security/advisories/GHSA-g7cv-rxg3-hmpx) https://github.com/TanStack/router/issues/7383

GHSA-27f5-xjrr-q9ff Affected @opensearch project/opensearch Versions

4 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
@opensearch-project/opensearch
npm
3.5.3
All 1 versions
3.5.3
None specified
@opensearch-project/opensearch
npm
3.6.2
All 1 versions
3.6.2
None specified
@opensearch-project/opensearch
npm
3.7.0
All 1 versions
3.7.0
None specified
@opensearch-project/opensearch
npm
3.8.0
All 1 versions
3.8.0
None specified

References

Frequently Asked Questions

What is GHSA-27f5-xjrr-q9ff?
GHSA-27f5-xjrr-q9ff is a security vulnerability in @opensearch project/opensearch involving Malware in @opensearch-project/opensearch under CWE-506: Embedded Malicious Code.
Which @opensearch project/opensearch versions are affected?
Affected versions include releases prior to current release patches across affected packages: @opensearch-project/opensearch.
What version fixes GHSA-27f5-xjrr-q9ff?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is @opensearch-project/opensearch affected?
Yes, @opensearch-project/opensearch is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of GHSA-27f5-xjrr-q9ff?
GHSA-27f5-xjrr-q9ff has a CVSS v3.1 base score of 9.6 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with GHSA-27f5-xjrr-q9ff?
GHSA-27f5-xjrr-q9ff is classified under CWE-506: Embedded Malicious Code (The product contains code that appears to be malicious in nature.).
How can I check npm dependencies for GHSA-27f5-xjrr-q9ff?
Run the dependency tree command: 'npm ls @opensearch-project/opensearch'. 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-27f5-xjrr-q9ff",
  "modified" : "2026-05-19T14:35:05Z",
  "published" : "2026-05-19T14:35:05Z",
  "aliases" : [ ],
  "summary" : "Malware in @opensearch-project/opensearch",
  "details" : "## Overview\n\nThe OpenSearch Project has sustained a security incident involving an external actor gaining force-push permissions within the project's CI infrastructure to embed malicious packages into four release versions of `@opensearch-project/opensearch`. Users are instructed to immediately take actions recommended in the **Remediation** section of this advisory.\n\n## Affected Versions\n\n**Package**: `@opensearch-project/opensearch`\n\n| Version | Published (UTC) | Published (America/New_York) |\n|---------|----------------|------------------------------|\n| 3.5.3 | 2026-05-12T00:47:39Z | May 11, 2026, 8:47:39 PM EDT |\n| 3.6.2 | 2026-05-12T00:29:34Z | May 11, 2026, 8:29:34 PM EDT |\n| 3.7.0 | 2026-05-12T00:42:29Z | May 11, 2026, 8:42:29 PM EDT |\n| 3.8.0 | 2026-05-12T00:43:54Z | May 11, 2026, 8:43:54 PM EDT |\n\n## Remediation\n\nAny computer that has these package versions installed or updated between 00:00 UTC 12 May 2026 (8:00 PM EDT 11 May 2026) and 10:00 UTC 12 May 2026 (6:00 AM EDT 12 May 2026) should be considered fully compromised. Steps should immediately be taken to prevent further compromise.\n\n- **All secrets and keys** stored on that computer should be rotated immediately from an alternate system.\n- The affected packages should be removed immediately, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n\n## References\n\n[GHSA-g7cv-rxg3-hmpx](https://github.com/TanStack/router/security/advisories/GHSA-g7cv-rxg3-hmpx)\nhttps://github.com/TanStack/router/issues/7383",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@opensearch-project/opensearch"
    },
    "versions" : [ "3.5.3" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@opensearch-project/opensearch"
    },
    "versions" : [ "3.6.2" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@opensearch-project/opensearch"
    },
    "versions" : [ "3.7.0" ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@opensearch-project/opensearch"
    },
    "versions" : [ "3.8.0" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/opensearch-project/opensearch-js/security/advisories/GHSA-27f5-xjrr-q9ff"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/opensearch-project/opensearch-js"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-506" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-19T14:35:05Z",
    "nvd_published_at" : null
  }
}