A security notice about a headless platform can be confusing. It may mention a package you have never heard of, a score you cannot interpret, or a fix that sounds optional. This guide gives you a repeatable way to judge a Sanity security advisory, so you act at the right speed and do not panic or ignore it.
Start with where the information comes from
Before you judge severity, confirm the advisory is real. Social posts, forwarded emails and aggregator pages often exaggerate or invent details. Treat a claim as unconfirmed until you find it in a source the vendor controls.
For Sanity, check these places, in this order:
- The security information in the official Sanity documentation, which is the starting point for how the company handles reports and disclosures.
- The release notes or changelog of the specific npm package named in the notice, such as the Studio or a client library.
- The repository of that package, where maintainers may publish advisories next to the code.
- Any email sent to the owners of your project, if you are a member of it.
If none of these confirm the story, do not change your setup because of it. Keep watching the official channels instead.
Know which parts of Sanity you are responsible for
Sanity is a headless content platform, so the responsibility is split. The Content Lake, where your content is stored, is hosted by Sanity. Sanity Studio is an open-source React application that your team configures and deploys. The front-end that displays your content is also yours.
This split changes what an advisory means for you:
- Issues in the hosted service are normally fixed by the vendor. Your job is to read the notice and check whether it asks you to do anything.
- Issues in the Studio, client libraries or plugins live in npm packages you install. A fix only reaches you when you update the dependency and redeploy.
- Issues in your own setup include leaked API tokens, overly broad project member roles and loose CORS origins. No vendor patch fixes those. Only you can.
This is why “is Sanity affected?” is the wrong question. Ask which layer is affected and whether that layer is yours.
Read the severity rating without over-reading it
Most advisories carry a CVSS rating, the Common Vulnerability Scoring System. It describes technical severity on a scale from zero to ten and groups scores into labels: low, medium, high and critical. The National Vulnerability Database explains CVSS in detail, and the CVE program is where public identifiers are catalogued.
When you read a score, look at the vector behind it. These parts matter most:
- Attack vector: can it be exploited over the network by anyone, or does it need local access?
- Privileges required: does the attacker need an account, an editor role or nothing at all?
- User interaction: must someone click or open something for it to work?
- Impact: does it expose content, allow changes, or only disrupt availability?
A high score that needs an administrator login on a Studio only three people can reach is a different problem from a medium score that any visitor can trigger on your public site. The score is a starting point. Your exposure decides the real priority.
If the vendor uses its own wording, such as a plain-language impact statement, use that alongside the CVSS label. When the two disagree, read the description and follow the more cautious reading until you understand why.
Work out whether you are actually affected
A notice only matters if it matches something you run. Go through this checklist:
- Package and version. Find the exact package named in the advisory, then check your lockfile for the version you have installed. Compare it with the affected range the advisory lists.
- Configuration. Many issues need a specific feature to be switched on. Check whether your project uses it.
- Plugins. List the Studio plugins in your package file. Third-party plugins are separate packages with their own maintainers and update schedules.
- Tokens. Review your API tokens, what permissions each one has and where each is stored. A token in front-end code is visible to everyone.
- CORS origins. Check that only the domains you actually use are allowed to make credentialed requests.
- Members and roles. Confirm everyone with project access still needs it, and at what level.
- Front-end stack. If the advisory concerns a framework or library your site uses, it applies even though it is not Sanity code.
If you use a package manager audit command, treat its output as a lead, not a verdict. It flags what it can match, and you still need to read the advisory to see whether your usage is exposed.
Decide how fast to act at each level
Use the rating and your exposure together. These are practical guidelines, not vendor deadlines. Your hosting, plan and setup may change them.
- Critical and you are affected: act the same day. Update the package, redeploy the Studio and front-end, and rotate any token that could have been exposed.
- High and you are affected: schedule the update within a few days, after testing it on a staging copy.
- Medium: include the update in your next regular maintenance window, unless your setup makes the attack easy.
- Low: apply it with routine dependency updates.
- Not affected: write down why, so the next person does not repeat the investigation.
Raise the priority one step if the issue needs no login, if your Studio is open to the public internet, or if the content you store is sensitive. Lower it one step if the affected feature is off and access is limited to a small trusted team.
After you update, test the editing workflow, the preview, and the pages that read from the Content Lake. A fix that breaks publishing creates its own incident.
Build a routine so you are never starting from zero
The calmest teams handle advisories as a process. Assign one person to watch the official channels, keep a list of the packages and plugins you rely on, and record who can deploy. Subscribing to release notifications for your dependencies shortens the gap between a fix being published and you hearing about it.
Keep your token inventory current too. If you can name every token, its purpose and its owner, a rotation takes minutes rather than a long search.
Frequently asked questions
Does a critical rating always mean I must act immediately?
No. Critical describes the worst case in general. If the affected package or feature is not in your project, you are not exposed. Confirm that fact against your lockfile and configuration, then record it.
Who patches a vulnerability in a Studio plugin?
The plugin’s maintainer publishes the fix, and you apply it by updating the package and redeploying your Studio. If a plugin is no longer maintained, plan to replace it or remove the feature that depends on it.
Should I rotate API tokens after every advisory?
Only when the advisory suggests a token may have been exposed, or when you cannot rule it out. Rotate by creating the new token first, updating your applications, confirming they work, and then revoking the old one.