Vulnerabilities in pkg:npm/@mittwald/kubernetes

PACKAGE
Advisory Summary

GHSA-g35x-j6jj-8g7j is a MODERATE (CVSS 4.4) @mittwald/kubernetes's secret contents leaked vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting @mittwald/kubernetes libraries in the npm ecosystem. The issue involves @mittwald/kubernetes's secret contents leaked via debug logging. Remediation is available by upgrading affected packages to version 3.5.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@mittwald/kubernetes

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-g35x-j6jj-8g7j - MODERATE @mittwald/kubernetes's secret contents leaked via debug logging

GHSA-g35x-j6jj-8g7j at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-g35x-j6jj-8g7j
Severity MODERATE
CVSS v3.1 Base Score 4.4
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product @mittwald/kubernetes
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.4

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

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

How to Fix GHSA-g35x-j6jj-8g7j

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

@mittwald/kubernetes fixed: 3.5.0
npm install @mittwald/kubernetes@3.5.0
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 @mittwald/kubernetes

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-g35x-j6jj-8g7j, inspect your project dependencies using npm:

npm ls @mittwald/kubernetes

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

Note: The npm ls @mittwald/kubernetes 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-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In @mittwald/kubernetes, 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

### Impact When debug logging is enabled (via `DEBUG` environment variable), the Kubernetes client may log all response bodies into the debug log -- including sensitive data from `Secret` resources. When running in a Kubernetes cluster, this might expose sensitive information to users who are _not_ authorised to access secrets, but have access to Pod logs (either directly using kubectl, or by Pod logs being shipped elsewhere). ### Patches Upgrade to 3.5.0 or newer. ### Workarounds Disable debug logging entirely, or exclude the `kubernetes:client` debug item (for example, using `DEBUG=*,-kubernetes:client`). ### References - https://cwe.mitre.org/data/definitions/532.html

GHSA-g35x-j6jj-8g7j Affected @mittwald/kubernetes Versions

1 component(s)
Fixed Versions:
3.5.0
Product / Package Ecosystem Affected Versions Fixed Version
@mittwald/kubernetes
npm
< 3.5.0
3.5.0

References

Frequently Asked Questions

What is GHSA-g35x-j6jj-8g7j?
GHSA-g35x-j6jj-8g7j is a security vulnerability in @mittwald/kubernetes involving @mittwald/kubernetes's secret contents leaked via debug logging under CWE-532: Insertion of Sensitive Information into Log File.
Which @mittwald/kubernetes versions are affected?
Affected versions include releases prior to 3.5.0 across affected packages: @mittwald/kubernetes.
What version fixes GHSA-g35x-j6jj-8g7j?
Upgrading to 3.5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @mittwald/kubernetes affected?
Yes, @mittwald/kubernetes is affected in releases prior to 3.5.0. Upgrade your dependency to 3.5.0 or later.
What is the CVSS score of GHSA-g35x-j6jj-8g7j?
GHSA-g35x-j6jj-8g7j has a CVSS v3.1 base score of 4.4 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with GHSA-g35x-j6jj-8g7j?
GHSA-g35x-j6jj-8g7j is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check npm dependencies for GHSA-g35x-j6jj-8g7j?
Run the dependency tree command: 'npm ls @mittwald/kubernetes'. 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-g35x-j6jj-8g7j",
  "modified" : "2023-05-02T16:51:25Z",
  "published" : "2023-05-02T16:51:25Z",
  "aliases" : [ ],
  "summary" : "@mittwald/kubernetes's secret contents leaked via debug logging",
  "details" : "### Impact\n\nWhen debug logging is enabled (via `DEBUG` environment variable), the Kubernetes client may log all response bodies into the debug log -- including sensitive data from `Secret` resources.\n\nWhen running in a Kubernetes cluster, this might expose sensitive information to users who are _not_ authorised to access secrets, but have access to Pod logs (either directly using kubectl, or by Pod logs being shipped elsewhere).\n\n### Patches\nUpgrade to 3.5.0 or newer.\n\n### Workarounds\nDisable debug logging entirely, or exclude the `kubernetes:client` debug item (for example, using `DEBUG=*,-kubernetes:client`).\n\n### References\n\n- https://cwe.mitre.org/data/definitions/532.html\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@mittwald/kubernetes"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mittwald/node-kubernetes/security/advisories/GHSA-g35x-j6jj-8g7j"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mittwald/node-kubernetes/commit/04f6809fd438417c343d541e57f76f0040e069cd"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mittwald/node-kubernetes"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mittwald/node-kubernetes/releases/tag/v3.5.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-05-02T16:51:25Z",
    "nvd_published_at" : null
  }
}