← Back to Pull requests

Bump jekyll-seo-tag, jekyll-feed, jekyll-redirect-from, and jekyll-remote-theme for security fixes #965

Merged
benbalter merged 1 files (8 lines) on Nov 03, 2026 21:43 UTC
View on GitHub
benbalter benbalter commented on Sep 30, 2026 00:09 UTC
Author

This bumps four plugins to releases that fix published security advisories. GitHub Pages currently pins affected versions of all four.

| Gem | Current | New | Advisory |
|---|---|---|---|
| jekyll-redirect-from | 0.16.0 | 0.17.0 | GHSA-xfg6-hjrc-hpvx: unescaped redirect_to allows script injection in generated redirect pages |
| jekyll-seo-tag | 2.8.0 | 2.9.1 | GHSA-572m-7cg5-6j5r: unescaped metadata fields and the JSON-LD block allow HTML/script injection |
| jekyll-feed | 0.17.0 | 0.18.0 | GHSA-3gx8-pqcm-38hw: post.lang isn't escaped in feed entries, plus a CDATA ]]> breakout |
| jekyll-remote-theme | 0.4.3 | 0.6.2 | Unblocks rubyzip >= 3.4.0 for CVE-2026-85396 (#966); 0.6.2 also avoids GHSA-3343-386p-v26g |

Fixes #966.

Why jekyll-remote-theme 0.6.2 and not 0.5.2

0.4.3 requires rubyzip < 3.0, so sites using the github-pages gem can't pick up the rubyzip path traversal fix. 0.5.2 is the first release to allow rubyzip 3.x. But 0.5.0–0.6.0 are affected by GHSA-3343-386p-v26g: a local-path remote_theme can read files outside the site source, even in safe mode. That was fixed in 0.6.1, and 0.6.2 only changes metadata. 0.6.0 also caps download and zip extraction size and adds request timeouts.

With this branch, rubyzip resolves to 3.7.0, and bundle-audit reports no known vulnerabilities in the resolved bundle.

Notes for reviewers

  • jekyll-remote-theme 0.6.x requires Ruby >= 3.0 and adds a runtime dependency on the openssl gem (>= 3.1.2). The gemspec still says >= 2.3.0, but the CI matrix already starts at 3.0.

  • jekyll-remote-theme 0.5.0 added @latest refs, local filesystem paths (rejected in safe mode as of 0.6.1), and proxy support.

  • jekyll-seo-tag 2.9.x also includes the 2.9.0 features (for example twitter:description, 100-word description truncation, and canonical: false), so some sites' <head> output will change slightly.

  • jekyll-redirect-from 0.17.0 skips redirect_to targets that aren't http(s) or relative (with a build warning), and percent-encodes quotes, <, >, \ and similar characters in targets.
  • Testing

    script/cibuild in Docker on Ruby 3.3: 157 of 158 specs pass. The one failure also happens on master: the unpinned jekyll-octicons dev dependency now adds data-component="Octicon" to its <svg> output, which breaks the <svg height="32" match in spec/github-pages/integration_spec.rb. The Ruby 3.0 Docker image doesn't build right now (its apt-get step fails), which is also unrelated to this change.

    🤖 Generated with Claude Code

    Diff: 8 lines (+4 / -4) across 1 files Reviewer: parkr Review duration: 50254m
    All Vouch review confidence checks passed
    Residual risk 0.09 = Change Risk (0.39) × (1 − Review Confidence (0.78)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 8 lines diff across 1 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.66 · 5 substantive comment(s)
    0.66
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    77%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.131
    Sensitive Paths sensitive_paths
    0.039
    Real PR Conversation Timeline
    16 items
    parkr parkr approved these changes on Sep 30, 2026 22:34 UTC
    Approved Reviewer

    Approved these changes.

    parkr parkr commented on Sep 30, 2026 22:34 UTC
    Contributor

    Thanks for bumping, @benbalter.

    parkr parkr commented on Sep 30, 2026 22:40 UTC
    Contributor

    @benbalter #966 outlines that jekyll-remote-theme needs an update for security reasons as well. Would it make sense to fold that into this PR?

    benbalter benbalter commented on Sep 30, 2026 23:20 UTC
    Author

    @parkr Good call, folded in via 09226aa. jekyll-remote-theme goes to 0.6.2 rather than 0.5.2 (the first release to allow rubyzip 3.x), because 0.5.0–0.6.0 are affected by GHSA-3343-386p-v26g. rubyzip now resolves to 3.7.0, and bundle-audit is clean on the resolved bundle. The other direct pins have no open advisories. I updated the description with details; the main caveat is that 0.6.x requires Ruby >= 3.0.

    lehors lehors approved these changes on Oct 01, 2026 15:43 UTC
    Approved Reviewer

    Yes, please!

    lehors lehors commented on Oct 05, 2026 11:20 UTC
    Contributor

    Thanks for putting this PR together @benbalter.
    I'm surprised it is taking so long for this PR to be merged and a new release to be produced given the number of projects impacted with the high severity vulnerability this is addressing...

    benbalter benbalter commented on Oct 06, 2026 22:26 UTC
    Author

    I'm surprised it is taking so long for this PR to be merged and a new release to be produced given the number of projects impacted with the high severity vulnerability this is addressing...

    If you're interested, contacting GitHub support (or posting in the relevant community forum) would likely be the best path.

    lehors lehors commented on Oct 07, 2026 08:47 UTC
    Contributor

    > I'm surprised it is taking so long for this PR to be merged and a new release to be produced given the number of projects impacted with the high severity vulnerability this is addressing...

    > If you're interested, contacting GitHub support (or posting in the relevant community forum) would likely be the best path.

    Done (sent email to GitHub support).

    kumadee kumadee commented on Oct 28, 2026 09:07 UTC
    Contributor

    My company has also raised a support case with GitHub to prioritize this PR. Will update when we get a response from GitHub.

    lehors lehors commented on Oct 28, 2026 11:59 UTC
    Contributor

    So, I got the following response from GitHub support:

    pages-gem depends on an old version of Jekyll that we cannot update without breaking million of sites.

    > The path forward is for the user to remove pages-gem and start using the latest version of Jekyll themselves.

    > We have this sample workflow for publishing a Jekyll Pages site without the pages-gem here:

    > https://github.com/actions/starter-workflows/blob/main/pages/jekyll.yml

    In my experience it takes quite a bit more to make the change though. There are several configurations that need adjusting to get the same output.

    You can see an example below:
    https://github.com/ossf/security-baseline/pull/572

    parkr parkr commented on Oct 28, 2026 15:18 UTC
    Contributor

    Interesting response. This PR does not attempt to move to a new Jekyll. It only updates some plugins with vulnerabilities.

    cetinajero cetinajero commented on Oct 28, 2026 15:31 UTC
    Contributor

    Interesting response. This PR does not attempt to move to a new Jekyll. It only updates some plugins with vulnerabilities.

    My thoughts exactly! 🫠

    benbalter benbalter commented on Oct 28, 2026 15:50 UTC
    Author

    @parkr right, this PR doesn't touch Jekyll. It keeps Pages on Jekyll 3.10.0 and only bumps four plugins with published advisories. I checked it for breakage on existing sites:

  • Same Jekyll range. Each new plugin version allows the same Jekyll versions its old one did, and the resolved bundle still has jekyll 3.10.0, liquid 4.0.4, kramdown 2.4.0, and jekyll-sass-converter 1.5.2. The only other changes are rubyzip 2.4.1 → 3.7.0 and the new openssl gem that jekyll-remote-theme pulls in.

  • Same output. On Ruby 3.3 (the version actions/jekyll-build-pages uses), I built just-the-docs, minimal-mistakes, pages-themes/minimal, and pages-themes/primer as remote themes, with both master and this branch. The output only differs in the jekyll-seo-tag <head> block (twitter:* tags use name= instead of property=, and it adds twitter:description and article:modified_time). Theme assets are byte-identical.

  • Specs. 158 examples run on both master and this branch, with the same single failure (the jekyll-octicons fixture) on both.
  • One real behavior change to know about: jekyll-redirect-from 0.17.0 only allows http(s) and relative redirect_to targets. So a page with redirect_to: mailto:… (or another non-http scheme) now logs a warning and builds as a normal page (usually blank) instead of redirecting. I expect that's rare, but it's worth a line in the release notes.

    Also, jekyll-remote-theme 0.6.x requires Ruby >= 3.0. That's fine for the Pages builder, but anyone running the gem locally on Ruby 2.x won't be able to resolve it. I can bump required_ruby_version to >= 3.0 here so they get a clear error.

    pages-gem depends on an old version of Jekyll that we cannot update without breaking million of sites.

    TL;DR: The dependencies are backwards compatible with the current Pages version of Jekyll and can be updated without updating Jekyll itself.

    parkr parkr commented on Oct 28, 2026 17:26 UTC
    Contributor

    Thanks Ben & Claude! I'll write Support too.

    tsusdere tsusdere approved these changes on Nov 03, 2026 21:28 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    benbalter benbalter
    Labels
    risk: low confidence: 77.9% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.3% (MEDIUM) · Higher = larger blast radius
    39.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 77.9% · Lower = rushed or shallow review
    77.9%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 8.7% · Safe to merge
    8.7%