CVE-2022-31162 — Vulnerability in slack-morphism — CVE Details
Slack Morphism for Rust before 0.41.0 can leak Slack OAuth client information in application debug logs
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.96%). Schedule for your next planned update.
Does your project use an affected slack-morphism version?
Paste your Cargo.lock to check it for CVE-2022-31162 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
Potential/accidental leaking of Slack OAuth client information in application debug logs.
Patches
More strict and secure debug formatting was introduced in v0.41 for OAuth secret types to avoid the possibility of printing sensitive information in application logs.
Workarounds
Don't print/output in logs request and responses for OAuth and client configurations.
For more information
If you have any questions or comments about this advisory:
- Open an issue in the repo
- Email us at me@abdolence.dev
Advisory Timeline
- First published July 20, 2022 (1590 days ago).
- Last revised November 8, 2023 — 476 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p slack-morphism --precise 0.41.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: crates.io (1).
| Package | Fixed In |
|---|---|
| slack-morphism crates.io · Affected: All versions | 0.41.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-1258
- CWE-200Information ExposureMITRE
- CWE-212
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/abdolence/slack-morphism-rust/security/advisories/GHSA-99j7-mhfh-w84pWEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31162ADVISORY
- https://github.com/abdolence/slack-morphism-rust/pull/133WEB
- https://github.com/abdolence/slack-morphism-rust/commit/4923fb7d458ed28c0302244c54cb4df0acee7ee6WEB
- https://github.com/abdolence/slack-morphism-rustPACKAGE
- https://github.com/abdolence/slack-morphism-rust/releases/tag/v0.41.0WEB
- https://rustsec.org/advisories/RUSTSEC-2022-0086.htmlWEB
Frequently Asked Questions
- What is CVE-2022-31162?
- Slack Morphism for Rust before 0.41.0 can leak Slack OAuth client information in application debug logs. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2022-31162?
- CVE-2022-31162 affects slack-morphism. It has a 1.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-31162 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 60% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-83816HIGH
CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE
- CVE-2022-39292HIGH
Exposure of sensitive Slack webhook URLs in debug logs and traces
- CVE-2026-83817HIGH
CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution