CVE-2026-105963
Secret key base exposed in stack trace arguments on wrong-typed Plug.Crypto arguments
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. Two 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. This issue affects plug_crypto: from 1.0.0 before 2.2.1; plug: from 1.6.3 before 1.7.0.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.509% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T18:36:01.564Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 5.1 · published by EEFCVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T12:57:51.269Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T18:36:01.564Z | CISA KEV |
| cvss | verified | 2026-11-19T12:57:51.269Z | CVE Program |
| epss | verified | 2026-11-19T18:27:13.977Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:52.473Z | OSV |
| affected | verified | 2026-11-19T12:57:51.269Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:51.269Z | CVE Program |
Affected versions and configuration
elixir-plug plug_crypto; modules: 'Elixir.Plug.Crypto', 'Elixir.Plug.Crypto.MessageVerifier', 'Elixir.Plug.Crypto.MessageEncryptor'; default status: unaffected: 1.0.0 to < 2.2.1 [affected; scheme: semver] elixir-plug plug_crypto; modules: 'Elixir.Plug.Crypto', 'Elixir.Plug.Crypto.MessageVerifier', 'Elixir.Plug.Crypto.MessageEncryptor'; default status: unaffected: 2d078b7b8264c565f0ff71235c515f4f46882dcf to < 981887493dada0fce7003c61861c00dfbb0fc8c5 [affected; scheme: git] elixir-plug plug; modules: 'Elixir.Plug.Crypto'; default status: unaffected: 1.6.3 to < 1.7.0 [affected; scheme: semver] elixir-plug plug; modules: 'Elixir.Plug.Crypto'; default status: unaffected: 56000c33d8a0a2fbac491f8be06b9c5112bc2276 to < * [affected; scheme: git]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"cpes": [
"cpe:2.3:a:elixir-plug:plug_crypto:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/elixir-plug/plug_crypto",
"vendor": "elixir-plug",
"modules": [
"'Elixir.Plug.Crypto'",
"'Elixir.Plug.Crypto.MessageVerifier'",
"'Elixir.Plug.Crypto.MessageEncryptor'"
],
"product": "plug_crypto",
"versions": [
{
"status": "affected",
"version": "1.0.0",
"lessThan": "2.2.1",
"versionType": "semver"
}
],
"packageURL": "pkg:hex/plug_crypto",
"packageName": "plug_crypto",
"programFiles": [
"lib/plug/crypto.ex",
"lib/plug/crypto/message_verifier.ex",
"lib/plug/crypto/message_encryptor.ex"
],
"collectionURL": "https://repo.hex.pm",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "'Elixir.Plug.Crypto':verify/4"
},
{
"name": "'Elixir.Plug.Crypto':decrypt/4"
},
{
"name": "'Elixir.Plug.Crypto':secure_compare/2"
},
{
"name": "'Elixir.Plug.Crypto':masked_compare/3"
},
{
"name": "'Elixir.Plug.Crypto':mask/2"
},
{
"name": "'Elixir.Plug.Crypto':sign/4"
},
{
"name": "'Elixir.Plug.Crypto':encrypt/4"
},
{
"name": "'Elixir.Plug.Crypto.MessageVerifier':sign/3"
},
{
"name": "'Elixir.Plug.Crypto.MessageVerifier':verify/2"
},
{
"name": "'Elixir.Plug.Crypto.MessageEncryptor':encrypt/4"
},
{
"name": "'Elixir.Plug.Crypto.MessageEncryptor':decrypt/4"
}
]
},
{
"cpes": [
"cpe:2.3:a:elixir-plug:plug_crypto:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/elixir-plug/plug_crypto",
"vendor": "elixir-plug",
"modules": [
"'Elixir.Plug.Crypto'",
"'Elixir.Plug.Crypto.MessageVerifier'",
"'Elixir.Plug.Crypto.MessageEncryptor'"
],
"product": "plug_crypto",
"versions": [
{
"status": "affected",
"version": "2d078b7b8264c565f0ff71235c515f4f46882dcf",
"lessThan": "981887493dada0fce7003c61861c00dfbb0fc8c5",
"versionType": "git"
}
],
"packageURL": "pkg:github/elixir-plug/plug_crypto",
"packageName": "elixir-plug/plug_crypto",
"programFiles": [
"lib/plug/crypto.ex",
"lib/plug/crypto/message_verifier.ex",
"lib/plug/crypto/message_encryptor.ex"
],
"collectionURL": "https://github.com",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "'Elixir.Plug.Crypto':verify/4"
},
{
"name": "'Elixir.Plug.Crypto':decrypt/4"
},
{
"name": "'Elixir.Plug.Crypto':secure_compare/2"
},
{
"name": "'Elixir.Plug.Crypto':masked_compare/3"
},
{
"name": "'Elixir.Plug.Crypto':mask/2"
},
{
"name": "'Elixir.Plug.Crypto':sign/4"
},
{
"name": "'Elixir.Plug.Crypto':encrypt/4"
},
{
"name": "'Elixir.Plug.Crypto.MessageVerifier':sign/3"
},
{
"name": "'Elixir.Plug.Crypto.MessageVerifier':verify/2"
},
{
"name": "'Elixir.Plug.Crypto.MessageEncryptor':encrypt/4"
},
{
"name": "'Elixir.Plug.Crypto.MessageEncryptor':decrypt/4"
}
]
},
{
"cpes": [
"cpe:2.3:a:elixir-plug:plug:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/elixir-plug/plug",
"vendor": "elixir-plug",
"modules": [
"'Elixir.Plug.Crypto'"
],
"product": "plug",
"versions": [
{
"status": "affected",
"version": "1.6.3",
"lessThan": "1.7.0",
"versionType": "semver"
}
],
"packageURL": "pkg:hex/plug",
"packageName": "plug",
"programFiles": [
"lib/plug/crypto.ex"
],
"collectionURL": "https://repo.hex.pm",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "'Elixir.Plug.Crypto':secure_compare/2"
},
{
"name": "'Elixir.Plug.Crypto':masked_compare/3"
}
]
},
{
"cpes": [
"cpe:2.3:a:elixir-plug:plug:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/elixir-plug/plug",
"vendor": "elixir-plug",
"modules": [
"'Elixir.Plug.Crypto'"
],
"product": "plug",
"versions": [
{
"status": "affected",
"version": "56000c33d8a0a2fbac491f8be06b9c5112bc2276",
"lessThan": "*",
"versionType": "git"
}
],
"packageURL": "pkg:github/elixir-plug/plug",
"packageName": "elixir-plug/plug",
"programFiles": [
"lib/plug/crypto.ex"
],
"collectionURL": "https://github.com",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "'Elixir.Plug.Crypto':secure_compare/2"
},
{
"name": "'Elixir.Plug.Crypto':masked_compare/3"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-105963",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-10-23T10:53:00.474296Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-10-23T13:39:29.887Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "EEF-CVE-2026-105963",
"aliases": [
"CVE-2026-105963",
"GHSA-ffw9-w85g-f2vh"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "1.6.3"
},
{
"fixed": "1.7.0"
}
]
}
],
"package": {
"name": "plug",
"purl": "pkg:hex/plug",
"ecosystem": "Hex"
},
"versions": [
"1.6.3",
"1.6.4"
],
"database_specific": {
"source": "https://cna.erlef.org/osv/EEF-CVE-2026-105963.json"
}
}
],
"severity": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/elixir-plug/plug/security/advisories/GHSA-ffw9-w85g-f2vh",
"type": "ADVISORY"
},
{
"url": "https://cna.erlef.org/cves/CVE-2026-105963.html",
"type": "WEB"
},
{
"url": "https://github.com/elixir-plug/plug_crypto/commit/2d078b7b8264c565f0ff71235c515f4f46882dcf",
"type": "WEB"
},
{
"url": "https://github.com/elixir-plug/plug_crypto/commit/981887493dada0fce7003c61861c00dfbb0fc8c5",
"type": "FIX"
},
{
"url": "https://github.com/elixir-plug/plug/commit/56000c33d8a0a2fbac491f8be06b9c5112bc2276",
"type": "WEB"
},
{
"url": "https://github.com/elixir-plug/plug/commit/aeaa90e76b73ea90c3ecca9aae16fce71bd2a8d4",
"type": "FIX"
},
{
"url": "https://hex.pm/packages/plug_crypto",
"type": "PACKAGE"
},
{
"url": "https://hex.pm/packages/plug",
"type": "PACKAGE"
}
],
"relatedGitRanges": [
{
"ranges": [
{
"repo": "https://github.com/elixir-plug/plug_crypto",
"type": "GIT",
"events": [
{
"introduced": "2d078b7b8264c565f0ff71235c515f4f46882dcf"
},
{
"fixed": "981887493dada0fce7003c61861c00dfbb0fc8c5"
}
]
}
],
"versions": [
"v2.2.0",
"v2.1.1",
"v2.1.0",
"v2.0.0",
"v1.2.5",
"v1.2.4",
"v1.2.2",
"v1.2.1",
"v1.2.0",
"v1.1.2",
"v1.1.1",
"v1.1.0",
"v1.0.0"
],
"database_specific": {
"source": "https://cna.erlef.org/osv/EEF-CVE-2026-105963.json"
}
},
{
"ranges": [
{
"repo": "https://github.com/elixir-plug/plug",
"type": "GIT",
"events": [
{
"introduced": "56000c33d8a0a2fbac491f8be06b9c5112bc2276"
}
]
}
],
"versions": [
"v1.6.4",
"v1.6.3"
],
"database_specific": {
"source": "https://cna.erlef.org/osv/EEF-CVE-2026-105963.json"
}
}
],
"database_specific": {
"cpe_ids": [
"cpe:2.3:a:elixir-plug:plug_crypto:*:*:*:*:*:*:*:*",
"cpe:2.3:a:elixir-plug:plug:*:*:*:*:*:*:*:*"
],
"cwe_ids": [
"CWE-532"
],
"capec_ids": [
"CAPEC-54"
]
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Hex / package | plug | Not a distribution channel | 1.7.0 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:52.473ZArchived source JSON
Source publication: 2026-10-23T09:56:58.885Z
Source modification: 2026-11-19T08:15:39.720ZDocument fingerprint
41de0ba8569a934a1c321af7799fb0d3e7824e7225f43c5487dd354316bcb03b - CVE ProgramConsulted: 2026-11-19T12:57:51.269ZArchived source JSON
Source publication: 2026-10-23T09:56:58.885Z
Source modification: 2026-11-19T08:12:30.785ZDocument fingerprint
868512ac6569a3931c5319a3bb3f9c460795e8a2c00bbf32f4eea04cdadf7d7f - FIRST EPSSConsulted: 2026-11-19T18:27:13.977ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
b596df421df82bf03a03e4e87442e154437628783643011659984006ca707510 - CISA KEVConsulted: 2026-11-19T18:36:01.564ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56
Official status history
- UNKNOWN → PUBLISHED · · evidence