WordPress · Drupal · Site Maintenance · Technical SEO · Editorial Policy

How to Apply an Urgent Ghost Security Update Safely

When Ghost publishes a security fix, the useful question is not how alarming the announcement sounds. It is what you personally have to do, and how fast you can do it without breaking the site. This guide walks through that process for Ghost, from working out who owns the patch to rolling back if the update goes badly.

What you control and what Ghost handles

Ghost is an open-source Node.js publishing platform. It runs in one of two ways, and the way you run it decides who applies the fix.

  • Ghost(Pro): the managed service. Ghost looks after the platform, so core updates are applied for you. Your job is limited to anything you added yourself, such as a custom theme or code injected into the site.
  • Self-hosted with Ghost-CLI: you own the server. You update Ghost, and you also update Node.js, the operating system and the web server in front of it.

If you are unsure which applies, check where the site is hosted and whether you log in to a server over SSH. If you do, you are self-hosting.

On a self-hosted site, three layers can need attention:

  • Ghost core: updated with Ghost-CLI.
  • Node.js: Ghost supports specific Node.js versions, and a core update can require a newer one. Check the supported versions in the official documentation before you start.
  • Themes and integrations: custom themes, custom integrations and any code you pasted into the code injection settings are your responsibility on every plan.

Confirm the update is real and relevant

Before touching a live site, spend a few minutes confirming the notice is genuine. Read it on Ghost’s own channels: the official documentation, the help centre and the project’s release notes. Be wary of emails or social posts that push you to install something from an unfamiliar link.

Then work out whether it affects you. Look at which part of Ghost the fix covers and compare it with your setup. A fix for a feature you never switched on is less urgent than one for the login or the public site. If the advisory carries a CVE identifier, you can look it up on cve.org to read the neutral description.

Note your current Ghost version before doing anything else. You can see it in the admin area under the settings, or by running ghost version on the server. You need it for the rollback step.

Take a fast backup first

A backup you can restore is the thing that makes an urgent update safe. Ghost keeps its data in a few places, so one export is not enough.

  1. Export your content. In Ghost Admin, the labs settings include an option to export your content as a JSON file. This covers posts, pages, tags and settings, but not images or theme files.
  2. Back up the content folder. On a self-hosted site, this folder holds your themes, uploaded images and files. Copy it somewhere off the server.
  3. Back up the database. Ghost uses MySQL in production. Create a database dump with your usual tooling, or take a server or disk snapshot from your hosting control panel if your provider offers one.
  4. Download your active theme. From the design settings, download the theme you use, especially if you edited it.

Store the copies away from the site itself. A backup on the same disk disappears if the server fails. Ghost-CLI also offers a backup command; check the CLI reference in the documentation to see what it covers on your version before you rely on it.

Apply the fix, staging first when time allows

If the notice is not an emergency, test on a copy first. Build a staging site on a separate server or local machine, restore your backup into it, and run the update there. Use the same Node.js version as production so the test means something.

If the risk is high and time is short, you can skip staging, but you must still have the backup from the previous step. Updating live without one is the single most avoidable mistake.

The sequence on a self-hosted site looks like this:

  1. Check the site is healthy right now, so you know what normal looks like.
  2. Read the release notes for the version you are moving to. Look for required Node.js changes and theme-related notes.
  3. Update Node.js first if the release notes require it.
  4. Run ghost update from the site’s install folder. Ghost-CLI downloads the new version, runs migrations and restarts the site.
  5. If something fails midway, read the message and the logs before retrying. Ghost-CLI records output you can review with ghost log.

On Ghost(Pro), there is nothing to run. Watch Ghost’s status and announcement channels, and use your own checks (below) to confirm the site behaves as expected afterwards.

Check the site after the update

A site that loads is not necessarily a site that works. Go through a short list immediately after updating:

  • Open the homepage, a recent post and an older post, and check they render with your theme intact.
  • Log in to Ghost Admin and open the editor. Confirm you can save a draft.
  • Test any membership features you use: sign-up, sign-in and the emails they send.
  • Test your integrations, such as newsletter delivery, webhooks and analytics tags.
  • Check that images and uploaded files load.
  • Look at the site on a phone as well as a desktop.
  • Run ghost doctor on the server to catch configuration problems.

If your theme throws errors, the theme checker inside Ghost Admin can tell you which templates use something the new version no longer supports. Update or patch the theme rather than rolling the security fix back, unless the site is unusable.

Roll back if something breaks

Decide in advance what counts as broken. A blank site, a failing login or lost images are rollback triggers. A cosmetic glitch in one template usually is not; fix it forward.

For a self-hosted site, Ghost-CLI can return to the previous version with ghost update --rollback. This reverts the installed version, but it does not undo every change made to your data, which is why the database backup matters. If the rollback does not restore a working site, restore the database dump and the content folder from your backup.

Keep in mind that rolling back puts you back on the version with the security issue. Treat it as a short pause, not a destination. Fix the cause, whether that is a theme, a Node.js mismatch or an integration, then try again soon.

While you are exposed, reduce risk where you can: limit who has staff access, make sure everyone uses strong, unique passwords, and review your user list for accounts that should no longer exist. For general web security background, the OWASP site is a reliable reference.

Frequently asked questions

Do I need to update if I use Ghost(Pro)?

Core updates are handled by Ghost on the managed service, so you do not run them yourself. You still own your theme and any custom code, so check those after a platform change.

Is it safe to update without a staging site?

It is acceptable when the fix is urgent, as long as you have a restorable backup of your content, your files and your database. Staging reduces surprises, but a tested backup is what protects you.

Where do I find the official update instructions?

Ghost documents installing, updating and the CLI commands on docs.ghost.org, and its support articles live in the Ghost help centre. Check them for the steps that match your version and hosting setup.

We use essential cookies to make this site work and remember your preferences. We do not use advertising or analytics cookies. Privacy Policy. Cookie Policy.