Most sites are built on third-party packages: Composer packages for PHP, npm packages for Node.js, and the software inside a container image. Cito checks the packages your site has installed against published security advisories, and tells you which ones have a known vulnerability and which version fixes it. This can be found under Site settings by clicking the ‘Security’ menu option. The ‘Dependency vulnerabilities’ card is at the bottom of the page. If you don’t see the card, scanning has not been enabled on your server yet. Dependency vulnerabilities
This is separate from Malware Protection. Malware protection looks for malicious files on your server. Dependency scanning looks for packages that are out of date in a way that matters for security.

What is scanned

Cito looks through your site’s home directory for lockfiles. A lockfile is the file your package manager writes to record exactly which versions are installed. The most common ones are:
  • composer.lock (PHP, including Laravel and Craft CMS)
  • package-lock.json, yarn.lock and pnpm-lock.yaml (Node.js)
Lockfiles for other languages, such as Gemfile.lock, poetry.lock, go.mod and Cargo.lock, are read too. For container sites, the packages inside each service’s image are scanned as well. This works for images from private registries too, because the image is read from your server and not pulled again. The card lists the lockfiles that were read, so you can check that the application you care about was included.

What is not scanned

  • WordPress core, plugins and themes. A typical WordPress site shows ‘Nothing to scan’. Anything under wp-content/plugins and wp-content/themes is skipped, including a custom plugin or theme that has its own lockfile. Keep an eye on the WordPress Plugins card on the site overview for available updates instead.
  • Installed copies of packages. Directories such as vendor and node_modules, and package manager caches, are skipped. The lockfile beside them is what gets read. This also means an application that lives inside a directory called vendor is not scanned.
  • Dependencies with no lockfile, such as files copied into the site by hand.
  • Your own code. Only third-party packages are checked.
‘Nothing to scan’ means no supported lockfile was found. It does not mean the site has no vulnerabilities.

When sites are scanned

Each site is scanned automatically about once a day, at its own time of day. The card shows when the last scan ran and roughly when the next one is due. A new site may wait up to a day for its first automatic scan. Suspended sites are not scanned automatically. Container images are checked as part of the same daily scan: an image is scanned again when it has changed, and otherwise once a week. Click ‘Scan now’ to scan straight away, for example after updating your dependencies. The scan runs in the background and the card updates when it finishes. This usually takes a few seconds, and a little longer for container images. Scans on a server run one at a time, so yours may wait briefly for its turn. ‘Scan now’ always scans your site’s own files. A container image that has not changed is only scanned again if its last scan was more than an hour ago.

Reading the results

Each finding shows the package, the version you have installed, the version that fixes the problem, where the package was found, and a link to the advisory with the full details. Findings are listed with the most serious first, and the card shows a count for each severity. Long lists show the first 25, with a ‘Show all’ button for the rest. Severity comes from the advisory’s CVSS score, the industry standard 0 to 10 rating: Severity describes the vulnerability in general, not your site in particular. Whether it affects you depends on how your site uses the package, which the advisory will help you decide. In the site list, a small count appears next to any site with critical or high severity findings in its own files. Site list indicator

Fixing a finding

For a finding in your site’s own files, update the package to a version shown under ‘Fixed in’ (or newer), deploy the change, then click ‘Scan now’ to confirm it has gone. For example:
These commands only update within the version range your composer.json or package.json allows. If the fixed version is outside that range, change the range first. When a package is pulled in by another package, you may need to update the package that depends on it. ‘Fixed in’ can list more than one version when a fix was released for several release lines: pick the one that matches the line you are on. If ‘Fixed in’ says ‘No fix yet’, no fixed version has been published. Check the advisory for advice on what to do in the meantime. Cito never changes your packages for you.

Container images

Each container service is listed separately with a count of findings per severity. Click the ‘Show findings’ button under an image (it includes the number of findings) to see the list. Container image findings It is normal for an image, including official ones, to have a large number of findings. They come from the operating system packages the image ships with, and most cannot be reached through your application. The fix is usually a newer image tag: change the tag in the site’s container settings and redeploy. An image is not scanned if it is larger than 4 GB, or if the server is too short of free disk space to examine it. The card says so when that happens.

When a scan fails

If a scan cannot complete, for example because the advisory database could not be reached, Cito keeps the results from the last scan that worked and shows a notice with the reason. Those results may be out of date, so they are never shown as a clean bill of health. The notice clears the next time a scan succeeds. If there are no earlier results to keep, the card shows that the scan failed and why. A failed automatic scan is tried again the next day, or you can click ‘Scan now’.

Privacy

To check for advisories, the names and versions of your installed packages are sent from your server to OSV, a public vulnerability database run by Google. That includes the names of any private packages listed in your lockfiles. Nothing else about your site is sent: no file contents, no domain names and no personal data.