{"id":"CVE-2026-89186","aliases":["CVE-2026-89186","EEF-CVE-2026-89186","GHSA-82qh-vrvm-gqvc"],"related":[],"kind":"vulnerability","state":"published","title":"mpp writes Payment-Receipt and Cache-Control before the wrapped application runs, letting a consumer's own Cache-Control expose paid responses to shared caches","summary":"Use of Cache Containing Sensitive Information in ZenHive mpp allows a shared HTTP cache to store a paid response and serve it to clients that never paid.\n\nMPP.Plug.verify_credential in lib/mpp/plug.ex sets payment-receipt and cache-control: private on the connection before the wrapped application runs, and registers no register_before_send/2 callback. Plug.Conn.put_resp_header/3 replaces an existing header, so a mounting application that sets its own cache-control on the paid resource (for example public, max-age=3600) silently overrides the private the library relies on, and a CDN or reverse proxy can then store the paid 200 together with its Payment-Receipt and serve both to unpaid clients. The library-level guarantee is therefore defeatable by the application it protects. For the same reason a downstream non-2xx response still carried Payment-Receipt, issuing a receipt for a response that delivered no resource.\n\nThis issue affects mpp: from 0.1.0 before 0.16.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Use of Cache Containing Sensitive Information in ZenHive mpp allows a shared HTTP cache to store a paid response and serve it to clients that never paid.\n\nMPP.Plug.verify_credential in lib/mpp/plug.ex sets payment-receipt and cache-control: private on the connection before the wrapped application runs, and registers no register_before_send/2 callback. Plug.Conn.put_resp_header/3 replaces an existing header, so a mounting application that sets its own cache-control on the paid resource (for example public, max-age=3600) silently overrides the private the library relies on, and a CDN or reverse proxy can then store the paid 200 together with its Payment-Receipt and serve both to unpaid clients. The library-level guarantee is therefore defeatable by the application it protects. For the same reason a downstream non-2xx response still carried Payment-Receipt, issuing a receipt for a response that delivered no resource.\n\nThis issue affects mpp: from 0.1.0 before 0.16.2.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nUse of Cache Containing Sensitive Information in ZenHive mpp allows a shared HTTP cache to store a paid response and serve it to clients that never paid.\n\n`MPP.Plug.verify_credential` in `lib/mpp/plug.ex` sets `payment-receipt` and `cache-control: private` on the connection before the wrapped application runs, and registers no `register_before_send/2` callback. `Plug.Conn.put_resp_header/3` replaces an existing header, so a mounting application that sets its own `cache-control` on the paid resource (for example `public, max-age=3600`) silently overrides the `private` the library relies on, and a CDN or reverse proxy can then store the paid 200 together with its `Payment-Receipt` and serve both to unpaid clients. The library-level guarantee is therefore defeatable by the application it protects. For the same reason a downstream non-2xx response still carried `Payment-Receipt`, issuing a receipt for a response that delivered no resource.\n\nThis issue affects mpp: from 0.1.0 before 0.16.2.\n\n## Impact\n\nAn unpaid client requesting the same URL through the shared cache receives the cached paid response, including the `Payment-Receipt` header issued to the paying client. Operators lose the revenue for every cache hit, and the receipt identifying a paid transaction is disclosed to third parties.\n\n## Workarounds\n\nIn the application mounted behind `MPP.Plug`, stop setting `Cache-Control` on paid routes so the library's `private` survives to the response, or set a directive that is itself safe for a shared cache (`private`, or `no-store`). Where the application must set its own caching policy, configure the CDN or reverse proxy not to cache responses carrying a `Payment-Receipt` header.\n\n## Configurations\n\nReachable only where the application mounted behind `MPP.Plug` sets its own `Cache-Control` on the paid resource, overriding the `private` the library wrote, and a shared HTTP cache (CDN or reverse proxy) sits in front of that route. An application that sets no `Cache-Control` of its own keeps the library's `private` and is not affected.","format":"markdown","source":"eef"}],"published":"2026-09-16T08:24:15.058Z","modified":"2026-11-26T17:23:08.646Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N","score":6.3,"rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N"}],"cwes":["CWE-524"],"affected":[{"ranges":[{"type":"semver","introduced":"0.1.0","fixed":"0.16.2","status":"affected"}],"vendor":"ZenHive","product":"mpp","package":"mpp","cpe":"cpe:2.3:a:ZenHive:mpp:*:*:*:*:*:*:*:*","repo":"https://github.com/ZenHive/mpp","source":"cvelist"},{"ranges":[{"type":"git","introduced":"2d4d1d94aae7790ae0623063961adbeef171fa71","fixed":"2fd91a5ecbd0b0ad2a4ac202b79659e8126dbc0b","status":"affected"}],"vendor":"ZenHive","product":"mpp","package":"zenhive/mpp","cpe":"cpe:2.3:a:ZenHive:mpp:*:*:*:*:*:*:*:*","repo":"https://github.com/ZenHive/mpp","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"0.16.2"}],"ecosystem":"Hex","package":"mpp","purl":"pkg:hex/mpp","source":"eef"},{"ranges":[{"type":"git","introduced":"2d4d1d94aae7790ae0623063961adbeef171fa71","status":"affected","fixed":"2fd91a5ecbd0b0ad2a4ac202b79659e8126dbc0b"}],"repo":"https://github.com/ZenHive/mpp","source":"eef"}],"references":[{"url":"https://github.com/ZenHive/mpp/security/advisories/GHSA-82qh-vrvm-gqvc","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-89186.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-89186","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ZenHive/mpp/commit/2d4d1d94aae7790ae0623063961adbeef171fa71","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ZenHive/mpp/commit/2fd91a5ecbd0b0ad2a4ac202b79659e8126dbc0b","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/mpp","tags":["package"],"sources":["eef"]}],"credits":["E.FU","Jonatan Männchen / EEF"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-16T14:50:34.541Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89186","url":"https://www.cve.org/CVERecord?id=CVE-2026-89186","licence":"CVE Terms of Use","modified":"2026-11-19T08:31:34.395Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-89186","url":"https://osv.dev/vulnerability/EEF-CVE-2026-89186","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:08.646Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89186","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89186","licence":"Public domain","modified":"2026-09-16T20:38:33.883Z"}],"updatedAt":"2026-11-26T17:37:08.555Z","epss":{"score":0.00524,"percentile":0.37834,"date":"2026-11-30T12:00:22.000Z"}}