{"id":"CVE-2022-31162","aliases":["CVE-2022-31162","GHSA-99j7-mhfh-w84p","RUSTSEC-2022-0086"],"related":[],"kind":"vulnerability","state":"published","title":"Slack Morphism for Rust before 0.41.0 can accidentally leak Slack OAuth client information in application debug logs","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nPotential/accidental leaking of Slack OAuth client information in application debug logs.\n\n### Patches\nMore 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.\n\n### Workarounds\nDon't print/output in logs request and responses for OAuth and client configurations.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in the [repo](https://github.com/abdolence/slack-morphism-rust)\n* Email us at [me@abdolence.dev](mailto:me@abdolence.dev)","format":"markdown","source":"ghsa"},{"lang":"en","text":"Debug log formatting made it possible to leak OAuth secrets into debug logs.\n\nThe patched version has introduced more strict checks to avoid this.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Slack Morphism es una biblioteca cliente asíncrona para Rust. En versiones anteriores a 0.41.0, era posible que la información del cliente Slack OAuth fuera filtrada en los registros de depuración de la aplicación. En la versión 0.41.0 fue introducido un formato de depuración más estricto y seguro para los tipos de secreto OAuth con el fin de reducir la posibilidad de imprimir información confidencial en los registros de la aplicación. Como mitigación, no imprimas/impresiones de peticiones y respuestas para OAuth y configuraciones de clientes en los registros","source":"nvd"}],"published":"2022-07-20T01:30:21.000Z","modified":"2026-06-17T04:44:56.343Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-200","CWE-212","CWE-1258"],"affected":[{"ranges":[{"version":"< 0.41.0","status":"affected"}],"vendor":"abdolence","product":"slack-morphism-rust","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.41.0"}],"ecosystem":"crates.io","package":"slack-morphism","purl":"pkg:cargo/slack-morphism","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.41.0"}],"ecosystem":"crates.io","package":"slack-morphism","purl":"pkg:cargo/slack-morphism","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.41.0"}],"vendor":"slack_morphism_project","product":"slack_morphism","cpe":"cpe:2.3:a:slack_morphism_project:slack_morphism:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/abdolence/slack-morphism-rust/security/advisories/GHSA-99j7-mhfh-w84p","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/abdolence/slack-morphism-rust/releases/tag/v0.41.0","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31162","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/abdolence/slack-morphism-rust/pull/133","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/abdolence/slack-morphism-rust/commit/4923fb7d458ed28c0302244c54cb4df0acee7ee6","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/abdolence/slack-morphism-rust","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0086.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/slack-morphism","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-04-23T15:53:20.715Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-31162","url":"https://www.cve.org/CVERecord?id=CVE-2022-31162","licence":"CVE Terms of Use","modified":"2025-04-23T17:57:53.113Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-99j7-mhfh-w84p","url":"https://github.com/advisories/GHSA-99j7-mhfh-w84p","licence":"CC-BY-4.0","modified":"2023-11-08T04:09:28.280Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2022-0086","url":"https://rustsec.org/advisories/RUSTSEC-2022-0086.html","licence":"CC0-1.0","modified":"2023-11-08T04:09:28.280Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-31162","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31162","licence":"Public domain","modified":"2026-06-17T04:44:56.343Z"}],"updatedAt":"2026-11-25T22:58:13.156Z","epss":{"score":0.0094,"percentile":0.61946,"date":"2026-12-01T12:00:22.000Z"}}