- 🐛 Fixed mobiledoc and lexical content being available via Content API - Kevin Ansfield
View the changelog for full details: v5.71.0...v5.71.1
💻 We're looking for DevOps engineers to join Ghost: https://careers.ghost.org/devops-engineer
Tag Name: v5.71.1
Release Date: 11/1/2023
GhostOpen-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.
Ghost v5.71.1 fixes a security vulnerability where raw mobiledoc and lexical content was accessible through the Content API using the fields parameter, even though this content should not be exposed publicly. This patch ensures that internal content formats remain properly protected, maintaining the integrity of Ghost's content security model.
fields parameterNo migration steps are required for this patch release. The update is fully backward compatible for standard usage of the Content API.
However, if you were explicitly requesting mobiledoc or lexical fields via the Content API's fields parameter in your custom code, you will need to update your implementation as these fields will no longer be available through this API.
This release fixes a security vulnerability in the Content API. All Ghost installations should be updated to v5.71.1 as soon as possible to ensure content is properly protected.
The update process follows the standard Ghost upgrade path and should not cause any disruption to your site's operation.
Fixed an issue where the Content API was exposing raw mobiledoc and lexical content when specifically requested via the fields parameter. While the API was correctly handling content format filtering when using the formats parameter, it wasn't properly filtering these internal formats when they were explicitly requested using the fields parameter.
The fix updates the post mapper used in API output serializers to ensure these fields are always stripped before content is sent through the API, regardless of how the content is requested.
No new features were introduced in this patch release. This is strictly a security fix release.
This release patches a security vulnerability where internal content formats (mobiledoc and lexical) were accessible through the Content API when explicitly requested via the fields parameter. These formats are not intended to be publicly accessible as they:
The vulnerability was reported by Prathap Puthran, and the Ghost team has addressed it by ensuring these fields are properly stripped from all API responses.
No specific performance improvements were included in this patch release.
This security patch addresses an important vulnerability in Ghost's Content API that could potentially expose internal content formats. While there's no evidence of widespread exploitation, the fix is crucial for maintaining proper content security boundaries.
The change ensures that internal content formats (mobiledoc and lexical) are consistently protected regardless of how the Content API is queried. This maintains Ghost's security model where certain content aspects should remain internal to the system.
For most users, this update will have no visible impact on day-to-day operations. Developers who were explicitly requesting these fields through the Content API will need to adjust their code, as this access path is now properly secured.
View the changelog for full details: v5.71.0...v5.71.1
💻 We're looking for DevOps engineers to join Ghost: https://careers.ghost.org/devops-engineer