Vulnerabilities in pkg:npm/@mittwald/kubernetes
PACKAGEGHSA-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.
pkg:npm/@mittwald/kubernetes
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
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).
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.
npm install @mittwald/kubernetes@3.5.0
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
GHSA-g35x-j6jj-8g7j Affected @mittwald/kubernetes Versions
1 component(s)| 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?
Which @mittwald/kubernetes versions are affected?
What version fixes GHSA-g35x-j6jj-8g7j?
Is @mittwald/kubernetes affected?
What is the CVSS score of GHSA-g35x-j6jj-8g7j?
What CWE is associated with GHSA-g35x-j6jj-8g7j?
How can I check npm dependencies for GHSA-g35x-j6jj-8g7j?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}