> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superblocks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CVE detection

> Check npm packages against known advisories at install time, at publish time, and continuously in production

**CVE detection** is a Superblocks-managed [Code Security](https://docs.superblocks.com/admin/code-security/index.md) policy that checks the npm packages your apps depend on against known vulnerability and malware advisories.

It is the only policy that runs at all three moments in the app lifecycle:

| Moment | What it does | Where the result appears |
| - | - | - |
| **Install time** | Checks the requested package before Clark adds it, including a 7-day cooldown on brand-new releases | Clark chat |
| **Publish time** | Re-checks dependencies on the snapshot being published | Publish readiness checklist |
| **Production** | Re-evaluates published apps as new advisories appear, with no app change required | Security Center and notifications |

All three use the same vulnerability index, sourced from [osv.dev](https://osv.dev) for the npm ecosystem and refreshed hourly. Superblocks also maintains a [CVE exceptions](https://docs.superblocks.com/admin/code-security/supply-chain/cve-exceptions.md) list for packages that ship in Superblocks templates. Those packages have known advisories that Superblocks has reviewed as not exploitable in this platform, and that Superblocks cannot upgrade today, or that have no upgrade available.

[Private registries](https://docs.superblocks.com/admin/code-security/supply-chain/private-registries.md) control where packages come from. CVE detection decides which versions are safe to install and stay in production.

## Install time

When [Clark](https://docs.superblocks.com/building-with-clark/index.md) installs an npm package, Superblocks checks the requested package and version against the vulnerability index before the install runs.

| Outcome | What happens |
| - | - |
| **Safe version** | The package installs. If a safer version of the same package exists, Clark installs that version instead |
| **Malware advisory** | The install is blocked. Clark picks a different reputable package that serves the same purpose |
| **CVE with no safe version** | The install is blocked. Clark tries a different package, or builds the capability another way |

If you named the package in chat and a CVE blocks it, Clark warns you. You can proceed with a short reason, which Superblocks records in the audit log. Malware blocks have no proceed path.

This is a gate, not a finding. It resolves before the package is ever installed, so there is no scan mode to configure and nothing to remediate later.

### 7-day cooldown

Brand-new npm releases are held back for **7 days** before Superblocks installs them. If Clark requests a version published inside that window, Superblocks prefers the newest version outside it, when one exists. This reduces exposure to compromised or malicious fresh publishes without asking builders to track package age themselves.

## Publish time

At publish time, CVE detection re-checks the dependencies on the snapshot being published and contributes findings to the publish readiness checklist, alongside [static analysis](https://docs.superblocks.com/admin/code-security/static-analysis.md) and the [Security Agent](https://docs.superblocks.com/admin/code-security/security-agent.md).

This catches what the install-time gate cannot: an advisory disclosed after the package was installed, and a transitive dependency pulled in later. Because these are findings on a publish, they follow the shared rules for severity, scan mode, and remediation described in [How findings work](https://docs.superblocks.com/admin/code-security/how-findings-work.md).

## Continuous monitoring

Superblocks keeps evaluating **published** apps after they ship, so a newly disclosed CVE surfaces even when the application has not changed. Results land in **Security Center**.

### Security Center

Security Center lives under **Security** in the dashboard. What you see depends on your permissions:

| You have | You see |
| - | - |
| **`policies:view`** | Every application in the organization |
| **Edit access on an app**, without `policies:view` | Only the applications you can edit |
| Neither | Security Center is hidden |

Findings are grouped by app, prioritized by severity, and refreshed as new advisories appear.

You do not have to check it manually. Superblocks alerts you when a new critical or high CVE lands on a published app. See [CVE notifications](https://docs.superblocks.com/admin/code-security/supply-chain/cve-notifications.md).

![Security Center with summary, dependency scans, and expanded advisories](https://mintcdn.com/superblocks/FKdVPsG09Yh8_1SI/images/administration/policy-agents/security-center-overview.png?fit=max\&auto=format\&n=FKdVPsG09Yh8_1SI\&q=85\&s=ea750dbcea5d7cc0b21c75b727e8c89d)

| Surface | Purpose |
| - | - |
| **Summary** | How many published apps have vulnerabilities, plus counts by severity |
| **Applications** | One row per app, with vulnerability count, creator, and status |
| **Advisories** | Expand a row for each finding: severity, advisory ID (OSV), package, and detector |

The **Applications** tab lists every application in the organization, so a row with no vulnerabilities means that app is clean. Only published apps are scanned. Click **View details** on a row to open its package inventory, described in [SBOM](https://docs.superblocks.com/admin/code-security/supply-chain/sbom.md). An app with open package vulnerabilities is **Unresolved**. Use **Fix with Clark** or **Unpublish**, described below.

Search by app name, package, or advisory ID. Filter by severity.

### What is scanned

* **Scope:** published applications with a deployed commit
* **Packages:** dependencies from the deployed commit (`package.json` plus lockfile-resolved versions when available)
* **Ecosystem:** npm
* **Advisory source:** [osv.dev](https://osv.dev) npm feed
* **Detector:** Superblocks Package Scanner

Scans evaluate the **deployed** package set, which is what is live, not an uncommitted local workspace. Findings stay current within the hourly index refresh window.

### Fix or unpublish

From Security Center, click **Fix with Clark** on an app or an individual advisory:

1. The app opens in the editor with a pre-built remediation prompt
2. Clark upgrades vulnerable packages to safe versions and keeps the app building
3. Publish or redeploy so the deployed package index updates
4. Security Center reflects the remediated packages on the next scan

Admins can also **Unpublish** a vulnerable app, which immediately takes it offline for all end users. Republish after the fix to restore access. Both actions require deploy access on the target application.

## Permissions

| Action | Permission |
| - | - |
| View scans and advisories for every app in the org | `policies:view` |
| View scans and advisories for one app | Edit access on that application |
| List distinct packages across the org (`list_distinct_packages_in_org`) | `policies:manage` |
| Fix with Clark / Unpublish from Security Center | Deploy access on the target application |

`policies:view` is included for the Admin and Owner roles by default. A builder with no `policies:view` and no editable application cannot open Security Center at all.

An admin with `policies:view` can see every vulnerable app but can only fix or unpublish the ones they can deploy.

## Related

* [How findings work](https://docs.superblocks.com/admin/code-security/how-findings-work.md)
* [CVE notifications](https://docs.superblocks.com/admin/code-security/supply-chain/cve-notifications.md)
* [CVE exceptions](https://docs.superblocks.com/admin/code-security/supply-chain/cve-exceptions.md)
* [SBOM](https://docs.superblocks.com/admin/code-security/supply-chain/sbom.md)
* [Private registries](https://docs.superblocks.com/admin/code-security/supply-chain/private-registries.md)
* [Audit logs](https://docs.superblocks.com/admin/audit-logs.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.