{"answers":{"affected":"3 open source packages ship an affected version, including slack-morphism. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-31162 in the wild and no public exploit code.","fix":"Upgrade slack-morphism to 0.41.0 or later.","what":"CVE-2022-31162 is a high-severity vulnerability in abdolence slack-morphism-rust, published on 21 Jul 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-31162 and fix it if it is affected.\n\nWhat it is: CVE-2022-31162 is a high-severity vulnerability in abdolence slack-morphism-rust, published on 21 Jul 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-31162 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- slack-morphism (crates.io): affected all versions; fixed in 0.41.0\n- slack-morphism (crates.io): affected all versions; fixed in 0.41.0\n- slack-morphism (crates.io): affected from 0.0.0-0; fixed in 0.41.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-31162/ (Markdown: https://insights.sbomify.com/CVE-2022-31162/index.md)","id":"CVE-2022-31162","markdown":"https://insights.sbomify.com/CVE-2022-31162/index.md","name":"CVE-2022-31162","record":{"aliases":["GHSA-99j7-mhfh-w84p","RUSTSEC-2022-0086"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust Slack client library","requires_auth":"none","summary":"Slack Morphism for Rust leaks OAuth client secrets in debug logs, allowing attackers with log access to steal credentials.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"slack_morphism","vendor":"slack_morphism_project"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-212","name":"Improper Removal of Sensitive Information Before Storage or Transfer"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"},{"id":"CWE-1258","name":"Exposure of Sensitive System Information Due to Uncleared Debug Information"}],"description":"Slack Morphism is an async client library for Rust. Prior to 0.41.0, it was possible for Slack OAuth client information to leak in application debug logs. Stricter and more secure debug formatting was introduced in v0.41.0 for OAuth secret types to reduce the possibility of printing sensitive information in application logs. As a workaround, do not print/output requests and responses for OAuth and client configurations in logs.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Slack Morphism for Rust before 0.41.0 can accidentally leak Slack OAuth client information in application debug logs","id":"CVE-2022-31162","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"information_disclosure","year":"2022"},"n_packages":3,"n_references":2,"next":{"headline":"TZInfo relative path traversal vulnerability allows loading of arbitrary files","id":"CVE-2022-31163"},"packages":[{"ecosystem":"crates.io","fixed":["0.41.0"],"introduced":["0"],"last_affected":[],"package":"slack-morphism","purl":null,"source":"GHSA-99j7-mhfh-w84p"},{"ecosystem":"crates.io","fixed":["0.41.0"],"introduced":["0"],"last_affected":[],"package":"slack-morphism","purl":"pkg:cargo/slack-morphism","source":"GHSA-99j7-mhfh-w84p"},{"ecosystem":"crates.io","fixed":["0.41.0"],"introduced":["0.0.0-0"],"last_affected":[],"package":"slack-morphism","purl":"pkg:cargo/slack-morphism","source":"RUSTSEC-2022-0086"}],"prev":{"headline":"Roxy-WI Vulnerable to Unauthenticated Remote Code Execution via ssl_cert Upload","id":"CVE-2022-31161"},"products":["slack-morphism-rust"],"published":"2022-07-21","related":[{"cvss_score":7.5,"headline":"Exposure of sensitive Slack webhook URLs in debug logs and traces","id":"CVE-2022-39292","kev_date_added":null,"published":"2022-10-10"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["abdolence"]},"summary":"Slack Morphism for Rust leaks OAuth client secrets in debug logs, allowing attackers with log access to steal credentials.","url":"https://insights.sbomify.com/CVE-2022-31162/"}