Intel

AIKIDO-2026-685250

jekyll-remote-theme is vulnerable to Path Traversal

Path TraversalGHSA-3343-386p-v26g Published 2 days ago

65

Medium Risk

This Affects:

RUBYjekyll-remote-theme
0.2.0 - 0.6.0
Fixed in 0.6.1
Are you affected? Scan for Free

TL;DR

jekyll-remote-theme accepts a local filesystem path for remote_theme (anything starting with /, ./, ../, ~/, or a drive letter), resolves it with File.expand_path, and only checks Dir.exist? without confining it to the site source. The plugin runs from Jekyll's :after_reset hook, so this happens even when the site is built with safe: true. A _config.yml that sets remote_theme to an absolute or ../ path makes the builder use that directory as the theme root, so its _includes, _layouts, _data, and assets are read into the build and copied into _site, disclosing any file the build user can read on a host that compiles untrusted sites. The fix rejects local theme paths when the site is in safe mode or its safe setting is unknown.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you build sites with untrusted _config.yml content in safe mode.

Background info

jekyll-remote-theme is vulnerable to Path Traversal in versions 0.2.0 - 0.6.0.

How to fix this

Upgrade the jekyll-remote-theme library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform