r/PangolinReverseProxy • • 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

25 comments sorted by

•

u/MrUserAgreement Oct 23 '26 edited Oct 23 '26

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):

name: custom/vpatch-node2shell-brotli
rules:
  - zones: [HEADERS]
    variables: [Content-Encoding]
    transform: [lowercase]
    match:
      type: regex
      value: '(^|[\s,])br($|[\s,;])'
labels:
  type: exploit
  service: http
  confidence: 3

Put it in an appsec-config under inband_rules (otherwise it only alerts), then add that config to appsec_configs in 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: br returns 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 clientTrustedIPs skip AppSec entirely. Anyone see a problem with this approach?

1

u/Thutex Oct 23 '26

thanks for the rule, i added it on top of my mitigation in traefik

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 😀

2

u/liltitiz Oct 23 '26

The update has been completed, and everything appears to be in order thus far.

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:

    mitigation-encoding:
      headers:
        customRequestHeaders:
          Accept-Encoding: "gzip, deflate"
    mitigation-compress:
      compress:
        encodings:
          - zstd
          - gzip
    mitigation-chain:
      # chain all mitigation
      chain:
        middlewares:
          - mitigation-encoding
          - mitigation-compress

1

u/liltitiz Oct 23 '26

Careful, I don't think that helps with Node2Shell. Your middleware only changes how responses get compressed. The bug is in Node's Brotli decoder, so the risk is a request body sent with Content-Encoding: br, and that still goes straight through to the backend. I was blocking that header with a CrowdSec AppSec rule until the update landed. Anyway, the new Pangolin image ships a patched Node now, so updating fixes it.

1

u/Thutex Oct 23 '26

already updated indeed, but from what i understand, the above should also have helped because it would reject anything that tried to send br as the encoding, thus never reaching any backend (i could be wrong, ofcourse - not a traefik expert)

1

u/geek_404 Oct 23 '26

Defense in depth is always a great model. That being said I have taken my stuff offline from the internet. I fear this is going to come so fast at us and as we saw with php2shell details are leaking early and probing is being done. My hope is it’s our government’s cyber teams trying to identify critical risk infrastructure to alert but I haven’t seen any indicators that is what is happening. Going to be a LONG few months for security and dev teams. I would adjust your schedules accordingly.

1

u/Thutex Oct 23 '26

yeah, i'm pretty sure that with where AI is now and is going to go, it's a battle that's already lost and just a matter of time before everything will be constantly vulnerable and attacked (succesfully)
.... this is likely just the beginning, unfortunately, so i'm also considering moving everything behind a wireguard tunnel exclusively, except for some sites that will just be static to reduce attack surface.... and then pray i don't have to deal with too much of this coming at us at work (though, as we all know, prayers are rarely answered)

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.

1

u/moonlighting_madcap Oct 24 '26

Been using Termius on my iPhone for remote ssh via Tailscale for a while, and it’s been great to manage Pangolin and its vps. I know there are many other options that work, but this is just what works for me.