Vulnerabilities in pkg:npm/openwhisk

PACKAGE
Advisory Summary

GHSA-53mj-mc38-q894 is a MODERATE remote memory exposure vulnerability (General Security Weakness) affecting Openwhisk libraries in the npm ecosystem. The issue involves remote memory exposure in openwhisk. Remediation is available by upgrading affected packages to version 3.3.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/openwhisk

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-53mj-mc38-q894 - MODERATE Remote Memory Exposure in openwhisk

GHSA-53mj-mc38-q894 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-53mj-mc38-q894
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Openwhisk
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-53mj-mc38-q894

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

openwhisk fixed: 3.3.1
npm install openwhisk@3.3.1
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 openwhisk

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-53mj-mc38-q894, inspect your project dependencies using npm:

npm ls openwhisk

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

Note: The npm ls openwhisk 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 General Security Weakness. In Openwhisk, 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 `openwhisk` before 3.3.1 are vulnerable to remote memory exposure. When a number is passed to `api_key`, affected versions of `openwhisk` allocate an uninitialized buffer and send that over network in Authorization header (base64-encoded). Proof of concept: ```js var openwhisk = require('openwhisk'); var options = { apihost: '127.0.0.1:1433', api_key: USERSUPPLIEDINPUT // number }; var ow = openwhisk(options); ow.actions.invoke({actionName: 'sample'}).then(result => console.log(result)) ``` ## Recommendation Update to version 3.3.1 or later.

GHSA-53mj-mc38-q894 Affected Openwhisk Versions

1 component(s)
Fixed Versions:
3.3.1
Product / Package Ecosystem Affected Versions Fixed Version
openwhisk
npm
< 3.3.1
3.3.1

References

Frequently Asked Questions

What is GHSA-53mj-mc38-q894?
GHSA-53mj-mc38-q894 is a security vulnerability in Openwhisk involving Remote Memory Exposure in openwhisk under General Security Weakness.
Which Openwhisk versions are affected?
Affected versions include releases prior to 3.3.1 across affected packages: openwhisk.
What version fixes GHSA-53mj-mc38-q894?
Upgrading to 3.3.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is openwhisk affected?
Yes, openwhisk is affected in releases prior to 3.3.1. Upgrade your dependency to 3.3.1 or later.
What CWE is associated with GHSA-53mj-mc38-q894?
GHSA-53mj-mc38-q894 is classified under General Security Weakness.
How can I check npm dependencies for GHSA-53mj-mc38-q894?
Run the dependency tree command: 'npm ls openwhisk'. 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-53mj-mc38-q894",
  "modified" : "2021-09-24T14:29:02Z",
  "published" : "2020-09-01T19:40:41Z",
  "aliases" : [ ],
  "summary" : "Remote Memory Exposure in openwhisk",
  "details" : "Versions of `openwhisk` before 3.3.1 are vulnerable to remote memory exposure.\n\nWhen a number is passed to `api_key`, affected versions of `openwhisk` allocate an uninitialized buffer and send that over network in Authorization header (base64-encoded).\n\nProof of concept:\n\n```js\nvar openwhisk = require('openwhisk');\nvar options = {\n  apihost: '127.0.0.1:1433', \n  api_key: USERSUPPLIEDINPUT // number\n};\nvar ow = openwhisk(options);\now.actions.invoke({actionName: 'sample'}).then(result => console.log(result))\n```\n\n\n## Recommendation\n\nUpdate to version 3.3.1 or later.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "openwhisk"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.3.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/openwhisk/openwhisk-client-js/pull/34"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openwhisk/openwhisk-client-js"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/600"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:29:24Z",
    "nvd_published_at" : null
  }
}