# GHSA-g35x-j6jj-8g7j: @mittwald/kubernetes's secret contents leaked via debug logging

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-05-02T16:51:25.000Z
- Modified: 2023-05-02T16:51:25.000Z
- Weaknesses: CWE-532

## Description

### 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

(As written by GitHub Advisory Database.)

## Affected

- @mittwald/kubernetes (npm): before 3.5.0

## References

- <https://github.com/mittwald/node-kubernetes/security/advisories/GHSA-g35x-j6jj-8g7j> (web)
- <https://github.com/mittwald/node-kubernetes/commit/04f6809fd438417c343d541e57f76f0040e069cd> (web)
- <https://github.com/mittwald/node-kubernetes> (package)
- <https://github.com/mittwald/node-kubernetes/releases/tag/v3.5.0> (web)

## Sources

- GitHub Advisory Database: [GHSA-g35x-j6jj-8g7j](https://github.com/advisories/GHSA-g35x-j6jj-8g7j), CC-BY-4.0, modified 2023-05-02

---

Page: https://cve.day/GHSA-g35x-j6jj-8g7j · Whole record: https://cve.day/GHSA-g35x-j6jj-8g7j.json · Rebuilt by cve.day 2026-11-25T22:56:45.343Z
