- 🐛 Fixed ability for the owner to change the password of other users - Nazar Gargol
- 🐛 Fixed CORS for errors from v2 Admin and Content APIs - Fabien O'Carroll
You can see the full change log for the details of every change included in this release.
Tag Name: 2.25.9
Release Date: 7/23/2019
GhostOpen-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.
This minor release addresses critical CORS issues in both Admin and Content APIs, ensuring proper error handling for cross-origin requests. It also fixes a bug that prevented site owners from changing other users' passwords. Additionally, the release includes improvements to the members service, adds global site SEO fields to the Admin API, and updates several dependencies for better security and performance.
No specific migration steps are required for this update. The changes are backward compatible and should not affect existing installations.
For developers working with custom implementations that interact with the members service, note that the service has been refactored to use a getter pattern for accessing the membersApi. This change should be transparent to most implementations but might require adjustments if you're directly accessing the members service internals.
This release contains important bug fixes for CORS handling and user management, along with security updates through dependency upgrades.
Recommendation: All Ghost installations should be updated to version 2.25.9, especially if you:
The update process follows the standard Ghost upgrade procedure and should be straightforward with no breaking changes.
Previously, CORS headers were only applied to preflight requests in both the Admin and Content APIs. This meant that when an error occurred during a request, the CORS headers would not be applied to the error response. As a result, client applications couldn't read the error details due to browser security restrictions.
This release fixes this issue by applying CORS middleware to all requests to both APIs, ensuring that proper CORS headers are always included, even in error responses.
A previous fix for allowing owners to change other users' passwords wasn't working correctly due to validation issues. The validation layer in the "frame" wasn't considering the required property of the controller. This release properly fixes the issue by removing the entire required key/value pair, allowing site owners to change passwords for other users as intended.
Ghost now provides global SEO fields through both the Admin and Content APIs. These fields follow the same structure as post SEO fields and are accessible via:
/settings endpoint now includes SEO-related fields/settings endpoint now includes the SEO data{{@site.*}} helper now exposes these SEO fieldsThis enhancement allows for better site-wide SEO management and customization.
The members service has been refactored to provide:
Several dependencies have been updated to their latest versions, addressing potential security vulnerabilities:
These updates ensure that Ghost remains secure against known vulnerabilities in these dependencies.
grunt dev properly restarts when changes are made to the frontendThese changes help streamline the development workflow and reduce unnecessary code.
Ghost 2.25.9 is a maintenance release that addresses several important issues while adding useful enhancements. The CORS fixes ensure that client applications can properly handle errors from both APIs, which is critical for frontend applications that interact with Ghost. The fix for owner password management restores an important administrative capability.
The addition of global SEO fields enhances Ghost's SEO capabilities, allowing for better site-wide optimization. The members service refactoring improves error handling and logging, which will help diagnose issues more effectively.
This release also includes several dependency updates that address potential security vulnerabilities, ensuring that Ghost remains secure against known threats.
Overall, this is a recommended update for all Ghost installations, providing important fixes and enhancements with minimal risk of disruption.
You can see the full change log for the details of every change included in this release.