Intel

AIKIDO-2026-78094

fsspec is vulnerable to Server-Side Template Injection (SSTI)

CVE-2026-104851Published Jul 8, 2026
July 8, 2026

65

CVE Score

Medium

Server-Side Template Injection (SSTI)

Are you affected? Scan for Free

TL;DR

ReferenceFileSystem renders templates, refs, and gen entries from a loaded reference set using an unsandboxed jinja2.Template engine. When an application opens a reference set that contains attacker-influenced {{ }} expressions, those expressions are evaluated with full Jinja access, allowing traversal to Python internals and arbitrary code execution. Generator (gen) entries are rendered through unsandboxed Jinja even under the default simple_templates behavior, so the unsafe path is reachable without enabling full templating. The fix renders these values with jinja2.sandbox.SandboxedEnvironment and skips Jinja generator processing when simple templates are used.

How do I fix this?

Upgrade the fsspec library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and load reference sets from untrusted sources with ReferenceFileSystem.

Package

Versions

0.9.0 - 2026.4.0

Fixed in 2026.6.0

Background info

fsspec is vulnerable to Server-Side Template Injection (SSTI) in versions 0.9.0 - 2026.4.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea