
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeI can help you with this security vulnerability issue. The @sanity/desk-tool package you're seeing is from Sanity Studio v2, which reached end-of-life on April 1st, 2024, and no longer receives security updates.
The immer vulnerability you're experiencing (immer 9.0.6 prototype pollution advisory 1002492) was resolved when Sanity migrated to Studio v3. In Studio v3 and later:
@sanity/structure (previously @sanity/desk-tool)You can't simply update the immer dependency to 9.0.6 because:
@sanity/desk-tool > @sanity/form-builder > @sanity/portable-text-editor > slate > immer)For the first vulnerability (via @sanity/desk-tool):
For the second vulnerability (via sanity-plugin-media):
sanity-plugin-media compatible with Studio v3If you absolutely cannot upgrade immediately, you could try using yarn resolutions to force immer to 9.0.6:
"resolutions": {
"immer": "9.0.6"
}However, this may break functionality and is not supported. The proper solution is upgrading to Studio v3 or v4, which removes these vulnerable dependencies entirely. Since Studio v2 is past its end-of-life date, continuing to use it poses ongoing security risks beyond just this immer vulnerability.
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store