Skip to main content

Deprecated ScriptTag capability

Detects the deprecated write_script_tags OAuth scope in shopify.app.toml.

DetailValue
Check IDDEPRECATED_SCRIPT_TAG_SCOPE
SeverityMedium
How it runsDeterministic scan and agent review

shopify.app.toml

[access_scopes]
# write_script_tags is deprecated: it injects scripts the
# merchant can't see or manage from the theme editor.
scopes = "write_products,write_script_tags"

Remove write_script_tags from scopes and migrate to app embeds.

For more detail, see App embed blocks.

shopify.app.toml

[access_scopes]
scopes = "write_products"

# Storefront JavaScript now ships as a theme app extension. The
# merchant adds and removes the app embed themselves, and the
# asset is versioned with your extension.


Was this page helpful?