r/PangolinReverseProxy • u/Striker434 • Oct 23 '26
Pangolin - CVE-2026-111497 - Node2Shell: Node.js Brotli vulnerability allows remote code execution
Node.js released security fixes on Oct 21, including CVE-2026-111497, a Brotli decoder bug rated High with possible RCE. Pangolin 1.25.2 (and current main) still pins node:24.18.1-slim, so the current image looks affected.
Has anyone heard when a patched release is planned?
I’ve shut down my Pangolin instance for now.
Update:
Linked PR:
https://github.com/fosrl/pangolin/pull/3970
57
Upvotes
•
u/MrUserAgreement Oct 23 '26 edited Oct 23 '26
There is a release out now: https://github.com/fosrl/pangolin/releases/tag/1.25.3
20
u/Moscc Oct 23 '26
I’m tired man lol.
Hopefully they will issue a patch soon.
8
u/Eternal_Glizzy_777 Oct 23 '26
Patched without incident, thank you to the dev team for a quick response and a solid update that didn't break anything.
6
u/AstralDestiny MOD Oct 23 '26
I have to wait for the others, They will likely bump it to 24.22.1 or 26.x Then likely make a new release.
4
u/Mirabis Oct 23 '26
Taking it down was not my preference, so kind of applied a workaround by stripping Content-Encoding at Traefik so body-parser never decompresses request bodies
3
u/liltitiz Oct 23 '26
my instance is still on Node 24.18.1. In the meantime I added a custom CrowdSec AppSec rule that just rejects any request with
Content-Encoding: br(browsers never compress request bodies, so it shouldn't break anything):Put it in an appsec-config under
inband_rules(otherwise it only alerts), then add that config toappsec_configsin your appsec acquis file.Tested from my phone on mobile data (my home IP is allowlisted, so testing from home gave a false 200): a normal GET returns 200, the same GET with
Content-Encoding: brreturns 403. Heads-up if you test against the API: Pangolin already returns a 403 to any POST without a CSRF token, so that doesn't tell you anything.Obviously not a replacement for the actual fix, and IPs in
clientTrustedIPsskip AppSec entirely. Anyone see a problem with this approach?2
u/toe_knee-mk Oct 23 '26
Oof! Bringing down the stack 😭
2
u/toe_knee-mk Oct 23 '26
Looks like .3 is out...you try it first 😀
1
u/Whole-Cookie-7754 Oct 23 '26
Well I guess I have to shut mine down as well
1
u/Smash0573 Oct 23 '26
Following
1
u/-ThreeHeadedMonkey- Oct 23 '26
I'm soon gonna have to run that auto-update script twice daily...
1
u/wallacebrf Oct 23 '26
Took mine down. My firewall blocks the ASN of every server hosting company that has ever pinged my system and I geo block blocking almost 70% of the IPv4 space really cuts down on the exposure.
1
u/Thutex Oct 23 '26
people sometimes ask me why i have cloudflare in front of pangolin.... this week seems to have provided the answer several times (their waf in front of my own instance waf & crowdsec, especially for these scenarios)
that being said, i've disabled br compression both on cloudflare and in traefik using middleware:
1
u/SnooOwls9795 Oct 23 '26
Update is ready 1.25.3!
docker compose exec -it pangolin node -v
v24.22.1
1
u/eiacub Oct 23 '26
I went with a temporary Traefik-side rejection instead of stripping `Content-Encoding` or enabling AppSec across all my services.
I added separate high-priority HTTP and HTTPS routers, scoped only to the Pangolin hostname. The relevant rule fragment is:
```yaml
rule: 'Host(`pangolin.example.com`) && HeaderRegexp(`Content-Encoding`, `(?i)(^|[\s,])br($|[\s,;])`)'
service: noop@internal
priority: 10000
```
On Traefik 3.7.16, `noop@internal` returns 418 without forwarding the request to Pangolin. The rejection isn't dependent on CrowdSec/AppSec or its trusted-IP exceptions. No production container restart was needed; the file provider picked up the change.
I tested ordinary dashboard/API requests, `Accept-Encoding: br`, mixed-case `Content-Encoding: BR`, and comma-separated encoding values. Normal requests still work; matched requests get 418 over both HTTP and HTTPS. Unrelated application hostnames are unaffected by this rule.
This is only a temporary mitigation for the public HTTP entrypoints, not a Node.js fix or a claim that every Brotli-related attack path is covered. Direct/internal access would need separate consideration. I'll keep it until the Node runtime in the actual upgraded Pangolin container is verified patched, rather than removing it just because the Pangolin tag changes.
Does anyone see a header-normalization or backend-decompression path that could bypass this approach? I'd appreciate a sanity check before treating it as more than a stopgap.
But never mind, if a new release is out :)
1
u/micycle_ Oct 23 '26
Dang. Can’t update from my phone. Had to shut er’ down.