Home

>

Tools

>

Ghost

>

Releases

>

1.26.1

Ghost Release: 1.26.1

Tag Name: 1.26.1

Release Date: 12/17/2019

Ghost LogoGhost

Open-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.

TL;DR

Ghost 1.26.1 is a maintenance release that focuses on error handling improvements and dependency updates. It fixes several issues that were causing 500 errors, improves request tracing with better X-Request-ID handling, and updates multiple dependencies for security and stability. This release enhances the robustness of the CMS by properly handling edge cases that previously caused server errors.

Highlight of the Release

    • Improved error handling for malformed image paths and invalid template syntax
    • Enhanced request tracing with X-Request-ID header propagation
    • Fixed uncaught exceptions from image fetches
    • Multiple dependency updates for security and stability

Migration Guide

No migration steps are required for this release. This is a maintenance release that can be installed as a direct update from Ghost 1.26.0 without any additional configuration changes or data migrations.

Upgrade Recommendations

This release is recommended for all Ghost 1.26.0 users as it contains important bug fixes and security updates. The update focuses on improving error handling and stability, which will benefit all Ghost installations.

To upgrade:

  1. Back up your Ghost installation and database
  2. Follow the standard Ghost update procedure for your installation method (CLI, Docker, or manual installation)
  3. No configuration changes are required after upgrading

Bug Fixes

Error Handling Improvements

  • Fixed 500 errors caused by malformed image paths (such as http://localhost:2368/content/images/2018/02/%c0%af)
  • Added proper error handling for invalid Handlebars syntax in templates, providing more helpful error messages
  • Added guards to the asset helper to prevent 500 errors when non-string paths are provided
  • Fixed uncaught exceptions from image fetches by upgrading the Got library to version 8.3.2
  • Changed YAML parser errors to return 400 status codes instead of 500, correctly indicating client-side issues

Dependency Updates

  • Updated express-hbs to v2.3.0
  • Updated gscan to v2.3.1 (includes fix to force gscan to use v1 checks only)
  • Updated js-yaml to v3.13.1
  • Updated jsonpath to v1.0.2
  • Updated lodash to v4.7.15
  • Updated bookshelf-relations to v1.3.0
  • Updated Ghost-Admin to 1.26.1

New Features

Enhanced Request Tracing

Ghost now properly handles X-Request-ID headers by ensuring that custom request IDs set on incoming requests are also returned in the response headers. This improvement makes it easier to trace requests through complex systems and is particularly valuable for debugging in production environments. The request ID handling has been refactored into a dedicated middleware for better code organization.

Security Updates

This release includes updates to several dependencies that address security vulnerabilities:

  • Updated js-yaml to v3.13.1 to address known security vulnerabilities
  • Updated lodash to v4.7.15 which includes security patches for previous vulnerabilities

These updates help protect Ghost installations from potential security issues in these dependencies.

Performance Improvements

No specific performance improvements were mentioned in this release. The focus was primarily on error handling, stability improvements, and dependency updates.

Impact Summary

Ghost 1.26.1 is a maintenance release that significantly improves error handling throughout the system. It addresses several issues that were causing 500 server errors in edge cases, particularly with malformed image paths and template syntax errors. These improvements result in a more robust platform that properly communicates errors to users and developers.

The enhanced X-Request-ID handling provides better request tracing capabilities, which is particularly valuable for debugging in production environments and complex setups with multiple services.

The dependency updates address security vulnerabilities and ensure compatibility with the latest stable versions of key libraries. This release maintains Ghost's commitment to security and stability while improving the developer and administrator experience through better error handling and debugging capabilities.

Full Release Notes

  • ✨ Improved x-request-id handling - Hannah Wolfe
  • 🐛 Fixed uncaught exceptions from image fetches - Hannah Wolfe

You can see the full change log for the details of every change included in this release.

Statistics:

File Changed15
Line Additions2,357
Line Deletions785
Line Changes3,142
Total Commits16

User Affected:

  • Better error handling for malformed image paths and asset references
  • Improved request tracing capabilities with X-Request-ID header support
  • More stable system with fewer 500 errors in edge cases

Contributors:

ErisDSrshbhgrg