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

How to Vet Third-Party Add-Ons on a Prismic Site

Prismic is a hosted headless CMS, so it works differently from a WordPress or Drupal site. There is no plugin that installs into the content backend and runs code next to your database. Prismic runs that backend. What you add to a Prismic project arrives in other ways, and each way carries its own kind of risk. Vetting starts with knowing which kind you are looking at.

What an add-on means on Prismic

On a Prismic site, third-party additions usually fall into four groups:

  • npm packages in the front-end app you deploy yourself, such as a Next.js project. These include helper libraries, UI components and framework integrations. They run with the full privileges of your build and your server.
  • Services holding an API access token for your repository, such as search tools, static-site build services, translation tools or sync scripts.
  • Webhook receivers, meaning any URL you configure in the repository settings to be notified when content is published.
  • Embedded scripts, such as analytics, chat widgets, consent banners and tag managers, added to your front-end templates or to content fields that render markup.

Prismic also has its own features for connecting outside data, such as Integration Fields. What is available can depend on your plan and on the current state of the product, so check the official Prismic documentation before relying on one.

Each group fails differently. A bad npm package compromises your build. A careless token holder exposes your content. An embedded script runs in your visitors’ browsers.

Vet before you install

Start with the question every add-on has to answer: what problem does it solve that you cannot solve with the framework or with Prismic’s own features? Every extra dependency adds an owner you have to trust, so the best add-on is often none at all.

If you still need one, go through these checks:

  1. Find the maintainer. Look for a named person or organisation, a public repository and a way to report problems. An anonymous package with no history deserves caution.
  2. Read the recent activity. Check whether issues get answers, whether releases happen on a steady rhythm and whether the changelog explains what changed. Silence is a signal.
  3. Check compatibility. Confirm that it supports the framework version and the Prismic client packages you use. An abandoned wrapper around an API that has since moved on is a liability.
  4. Look at the dependency tree. A small helper that pulls in dozens of other packages multiplies your exposure. Prefer packages with few, well-known dependencies.
  5. Read what it asks for. Does it need a read-only token, or write access? Does it need to run in the browser, or only at build time?
  6. Test it away from production. Install it in a branch or a staging deployment first, and keep the lockfile change in the same pull request so reviewers see exactly what arrived.

Prefer packages published by Prismic itself for Prismic-specific work. Their documentation says what they are for, and you can judge them against a single known vendor.

Check the permissions it requests

Permissions are where hosted platforms differ most from self-hosted ones, because the dangerous part is usually the credential you hand over, not the code you run.

Prismic gives you several levers. Repository users have roles, and the roles decide who can publish, who can only write and who can change settings. API access is controlled through access tokens, and whether your content API is public or requires a token depends on how you configure the repository. Webhooks let you send events to outside URLs. Exact options can vary by plan, so confirm them in your repository settings and the vendor documentation.

Apply these rules to every integration:

  • Give each tool its own token, named after the tool, so you can revoke one without breaking the others.
  • Choose the narrowest access that works. If a tool only reads published content, it should not hold anything that can change it.
  • Keep tokens in environment variables on the server or build service. Never put a secret token in client-side code, because anyone can read it from the browser.
  • Do not add a vendor’s staff or a contractor as a repository user when a token would do the job. If a person does need access, give the lowest role that covers their work.
  • Treat a webhook URL as a trust decision. Whoever controls it receives your publishing events, so confirm it belongs to the service you think it does and that it uses HTTPS.

The OWASP Top Ten is a useful lens here, particularly its categories on broken access control and vulnerable or outdated components.

Be strict with embedded scripts

A script loaded from another domain can read the page, see form entries and change what visitors see. On a headless site you control the templates, so you decide exactly what loads.

  • Load third-party scripts only on the pages that need them, not sitewide by default.
  • Use a Content Security Policy to list the domains allowed to run code. The MDN guide to Content Security Policy explains the directives.
  • Where a vendor serves a fixed file, consider Subresource Integrity so the browser rejects a file that has changed unexpectedly. Scripts that are meant to update themselves will not suit this, which is itself a reason to weigh them carefully.
  • Avoid tag managers that let people outside your team add new scripts without review.
  • Be cautious with content fields that accept raw embed code. Limit who can publish them through roles, and review what editors paste in.

Monitor after you install

Vetting is a snapshot. Maintenance changes over time, so set up a routine.

  1. Keep an inventory. List every package, token, webhook and script with its owner, its purpose and the date you added it.
  2. Automate dependency alerts. Use the audit tooling of your package manager and your code host’s dependency alerts, and run them in your build so a flagged package is seen.
  3. Update on a schedule. Apply updates in small batches, read the changelogs and test on staging. Pin versions with a lockfile so a surprise release cannot reach production unreviewed.
  4. Review tokens and users. At regular intervals, open your repository settings and check each token, webhook and user against the inventory. Anything you cannot explain is a candidate for removal.
  5. Watch outbound behaviour. Check the network requests your pages make in a browser’s developer tools. A script calling domains you never approved is a red flag.
  6. Track the vendor. Note changes of ownership, a new maintainer, a sudden gap in releases or an announcement that a project is no longer supported.

Remove add-ons completely

Uninstalling the code is only half of removal on a headless stack, because the access you granted outlives the package.

  • Delete the dependency, its imports and its configuration, then rebuild and test.
  • Revoke the token that the tool used, and rotate any shared secret it could read.
  • Delete the webhook entry from the repository settings, and remove the receiving endpoint if you hosted it.
  • Remove the script tag and any related Content Security Policy allowances.
  • Remove the user account if a person or vendor was added for it.
  • Update the inventory so the next review does not chase something that no longer exists.

Frequently asked questions

Does Prismic have a plugin marketplace I can browse?

Prismic is not built around installing plugins into the CMS backend the way WordPress is. Extensions come mainly as packages for your front-end project, integrations that use API access, and webhooks. Check the official documentation for the current list of supported integrations.

Is a hosted CMS safer than a self-hosted one for add-ons?

It removes one area of risk, because you do not patch the content backend yourself. The code in your own front-end app, the credentials you hand out and the scripts you load remain your responsibility, so the same vetting still applies.

What should I do if an add-on I use stops being maintained?

Plan its replacement straight away. Look for an actively maintained alternative, or for a way to do the same job with your framework or with Prismic’s own client. In the meantime, restrict its access, pin its version and watch for any security notices.

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.