{"id":"CVE-2026-105963","revision":null,"records":[{"revision":"6f89804bd5b946d9bc78ccfd7d944c7e","observedAt":"2026-10-23T16:01:20.601+00:00","statement":{"source":"cve-program","id":"CVE-2026-105963","aliases":[],"title":"Secret key base exposed in stack trace arguments on wrong-typed Plug.Crypto arguments","description":"Externally-Generated Error Message Containing Sensitive Information vulnerability in plug_crypto in elixir-plug plug_crypto allows an unauthenticated remote attacker to expose the secret key base through application logs via a wrong-typed argument. Every public function in Plug.Crypto validates argument types in a function-head guard. A failed guard makes the Erlang VM raise FunctionClauseError with the actual argument values in the top stack frame, so the secret key base, a derived key, or the value an API key is compared against lands in that frame. The library's rescue blocks and Plug.Crypto.prune_args_from_stacktrace/1 only reach exceptions raised inside a function body, so they never see a guard failure. Plug.Cowboy and Bandit write the frame to the error log and attach it as crash_reason Logger metadata, which error trackers forward.\n\nTwo entry points take request data. Plug.Crypto.verify/4 exposes the secret key base when the token is neither a binary nor nil, which Phoenix.Token.verify/4 reaches because it forwards the token unguarded. Plug.Crypto.secure_compare/2 exposes the other operand when one side is not a binary, as happens when a missing request header yields nil. Reading the leaked value needs separate access to the logs or the error tracker, so the request alone does not disclose the secret to the attacker.\n\nThis issue affects plug: from 1.6.3 before 1.7.0; plug_crypto: from 1.0.0 before 2.2.1.","state":0,"publishedAt":"2026-10-23T09:56:58.885+00:00","modifiedAt":"2026-10-23T13:39:29.887+00:00","affected":[{"ecosystem":"https://repo.hex.pm","name":"plug","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://repo.hex.pm\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:elixir-plug:plug:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.Plug.Crypto'\"\n                    ],\n                    \"packageName\": \"plug\",\n                    \"packageURL\": \"pkg:hex/plug\",\n                    \"product\": \"plug\",\n                    \"programFiles\": [\n                        \"lib/plug/crypto.ex\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':secure_compare/2\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':masked_compare/3\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/elixir-plug/plug\",\n                    \"vendor\": \"elixir-plug\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"1.7.0\",\n                            \"status\": \"affected\",\n                            \"version\": \"1.6.3\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"ecosystem":"https://github.com","name":"elixir-plug/plug","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://github.com\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:elixir-plug:plug:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.Plug.Crypto'\"\n                    ],\n                    \"packageName\": \"elixir-plug/plug\",\n                    \"packageURL\": \"pkg:github/elixir-plug/plug\",\n                    \"product\": \"plug\",\n                    \"programFiles\": [\n                        \"lib/plug/crypto.ex\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':secure_compare/2\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':masked_compare/3\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/elixir-plug/plug\",\n                    \"vendor\": \"elixir-plug\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"*\",\n                            \"status\": \"affected\",\n                            \"version\": \"56000c33d8a0a2fbac491f8be06b9c5112bc2276\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"https://repo.hex.pm","name":"plug_crypto","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://repo.hex.pm\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:elixir-plug:plug_crypto:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.Plug.Crypto'\",\n                        \"'Elixir.Plug.Crypto.MessageVerifier'\",\n                        \"'Elixir.Plug.Crypto.MessageEncryptor'\"\n                    ],\n                    \"packageName\": \"plug_crypto\",\n                    \"packageURL\": \"pkg:hex/plug_crypto\",\n                    \"product\": \"plug_crypto\",\n                    \"programFiles\": [\n                        \"lib/plug/crypto.ex\",\n                        \"lib/plug/crypto/message_verifier.ex\",\n                        \"lib/plug/crypto/message_encryptor.ex\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':verify/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':decrypt/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':secure_compare/2\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':masked_compare/3\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':mask/2\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':sign/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':encrypt/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto.MessageVerifier':sign/3\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto.MessageVerifier':verify/2\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto.MessageEncryptor':encrypt/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto.MessageEncryptor':decrypt/4\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/elixir-plug/plug_crypto\",\n                    \"vendor\": \"elixir-plug\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"2.2.1\",\n                            \"status\": \"affected\",\n                            \"version\": \"1.0.0\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"ecosystem":"https://github.com","name":"elixir-plug/plug_crypto","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://github.com\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:elixir-plug:plug_crypto:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.Plug.Crypto'\",\n                        \"'Elixir.Plug.Crypto.MessageVerifier'\",\n                        \"'Elixir.Plug.Crypto.MessageEncryptor'\"\n                    ],\n                    \"packageName\": \"elixir-plug/plug_crypto\",\n                    \"packageURL\": \"pkg:github/elixir-plug/plug_crypto\",\n                    \"product\": \"plug_crypto\",\n                    \"programFiles\": [\n                        \"lib/plug/crypto.ex\",\n                        \"lib/plug/crypto/message_verifier.ex\",\n                        \"lib/plug/crypto/message_encryptor.ex\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':verify/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':decrypt/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':secure_compare/2\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':masked_compare/3\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':mask/2\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':sign/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto':encrypt/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto.MessageVerifier':sign/3\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto.MessageVerifier':verify/2\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto.MessageEncryptor':encrypt/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Plug.Crypto.MessageEncryptor':decrypt/4\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/elixir-plug/plug_crypto\",\n                    \"vendor\": \"elixir-plug\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"981887493dada0fce7003c61861c00dfbb0fc8c5\",\n                            \"status\": \"affected\",\n                            \"version\": \"2d078b7b8264c565f0ff71235c515f4f46882dcf\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":5.1,"severity":"MEDIUM"}],"references":["https://github.com/elixir-plug/plug/security/advisories/GHSA-ffw9-w85g-f2vh","https://cna.erlef.org/cves/CVE-2026-105963.html","https://osv.dev/vulnerability/EEF-CVE-2026-105963","https://github.com/elixir-plug/plug/commit/56000c33d8a0a2fbac491f8be06b9c5112bc2276","https://github.com/elixir-plug/plug/commit/aeaa90e76b73ea90c3ecca9aae16fce71bd2a8d4","https://github.com/elixir-plug/plug_crypto/commit/2d078b7b8264c565f0ff71235c515f4f46882dcf","https://github.com/elixir-plug/plug_crypto/commit/981887493dada0fce7003c61861c00dfbb0fc8c5"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-105963","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-105963","identifiers":["CVE-2026-105963"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-10-27T19:48:20.2022313+00:00","complete":true,"records":1758,"lastAttemptAt":"2026-10-27T19:48:20.2022313+00:00","lastSuccessAt":"2026-10-27T19:48:20.3995122+00:00","error":null,"lastVerifiedAt":"2026-10-27T19:48:20.3995159+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-187d2b72c94ceb8c4417f1032ec3109a3a3a7b730abadb561d8cdd2a96e04d27-7cd07bd34af12feff0c266ac6b6067983cd304c0b7a53edb5f19b42fc0b28494","complete":true,"records":415364,"lastAttemptAt":"2026-10-27T19:46:06.1518767+00:00","lastSuccessAt":"2026-10-27T19:46:06.0285436+00:00","error":null,"lastVerifiedAt":"2026-10-27T19:46:06.1518767+00:00","snapshotPublishedAt":"2026-10-27T19:18:28+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-3c3fdf72295742c7a66e189e2b63cb9e","complete":false,"records":5734,"lastAttemptAt":"2026-10-27T20:00:28.3741297+00:00","lastSuccessAt":"2026-10-27T20:00:28.37+00:00","error":null,"lastVerifiedAt":"2026-10-27T20:00:28.37+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":1000,"expectedIdentifiers":13501,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-10-27T19:48:20.2022313+00:00","complete":true,"records":1093,"lastAttemptAt":"2026-10-27T19:48:20.2022313+00:00","lastSuccessAt":"2026-10-27T19:48:20.4010872+00:00","error":null,"lastVerifiedAt":"2026-10-27T19:48:20.4010877+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-3bd7ce170fa9469593b2b05a4c145743","complete":true,"records":13438,"lastAttemptAt":"2026-10-27T19:48:21.6831828+00:00","lastSuccessAt":"2026-10-27T19:48:21.679+00:00","error":null,"lastVerifiedAt":"2026-10-27T19:48:21.679+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13501,"expectedIdentifiers":13501,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-0a9352f15ff9b42ef0668815b17985da54b0862a5d24cb9a13f2a99c14c0f811","complete":true,"records":9785,"lastAttemptAt":"2026-10-27T19:48:20.0598535+00:00","lastSuccessAt":"2026-10-27T19:48:19.7606489+00:00","error":null,"lastVerifiedAt":"2026-10-27T19:48:20.0598535+00:00","snapshotPublishedAt":"2026-10-27T19:18:07+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-bad5d31e7f6a5e3d338e11d8789069b63620a403f927730769688b42f768e4f6","complete":true,"records":1965,"lastAttemptAt":"2026-10-27T19:46:06.3074736+00:00","lastSuccessAt":"2026-10-26T16:35:43.1460623+00:00","error":null,"lastVerifiedAt":"2026-10-27T19:46:06.3074736+00:00","snapshotPublishedAt":"2026-10-26T16:18:29+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-3a5b306d60fc44677a03a8afc99d87e6c5402770ef68d560f94a8c3ad3802b75","complete":true,"records":3001,"lastAttemptAt":"2026-10-27T19:48:20.1662846+00:00","lastSuccessAt":"2026-10-27T16:45:49.0050993+00:00","error":null,"lastVerifiedAt":"2026-10-27T19:48:20.1662846+00:00","snapshotPublishedAt":"2026-10-27T16:33:43+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-fc1c62e1c2d70dda08a497ed7a59029d5d84def9eb7702ebf314b9dadea06e2f","complete":true,"records":230836,"lastAttemptAt":"2026-10-27T19:48:10.3426958+00:00","lastSuccessAt":"2026-10-27T19:48:08.9643671+00:00","error":null,"lastVerifiedAt":"2026-10-27T19:48:10.3426958+00:00","snapshotPublishedAt":"2026-10-27T19:18:16+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}