Search by

ruvelo / shopware-security-alerts

francoisbultez

Security alerts for Shopware 6: tells you in the administration and by email when shopware/core or a plugin installed with Composer has a known vulnerability, loudest when it is exploited in the wild.

Package info

github.com/Ruvelo/shopware-security-alerts

Type:shopware-platform-plugin

pkg:composer/ruvelo/shopware-security-alerts

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 3

v1.1.0 2026-10-13 09:13 UTC

This package is auto-updated.

Last update: 2026-12-03 00:18:49 UTC


README

Tests Shopware 6.6 | 6.7 PHP 8.2 to 8.4 PHPStan level 8 MIT license

Ruvelo Security Alerts for Shopware 6

Know before they do. This plugin tells you, in the Shopware administration and by email, when the exact version of shopware/core, or a plugin or app you installed with Composer, has a known vulnerability. When the flaw is exploited in the wild it says so first: "Exploited, patch now".

It is the Shopware adapter on ruvelo/security-advisories, the framework-agnostic core behind Ruvelo's security alerts. It is free, MIT licensed, and needs no account and no API key.

composer require ruvelo/shopware-security-alerts
bin/console plugin:refresh
bin/console plugin:install --activate RuveloSecurityAlerts
bin/build-administration.sh

Not published yet. The plugin and its core are not on Packagist, so composer require will not find them until they are. Until then, add both repositories as VCS repositories in your shop's composer.json.

A quick tour

The Security alerts page in the Shopware 6.7 administration: one exploited finding first, a second finding, and a card listing a plugin that is not checked

This is a real screenshot from the CI job that installs the plugin in a fresh Shopware 6.7 (.github/workflows/tests.yml, artifact admin-security-alerts.png). The demo shop is empty, so the test adds one old livewire/livewire to its composer.lock, which is a real advisory that CISA lists as exploited, and unpacks a made-up plugin, AcmeZipDemo, into custom/plugins the way a zip install would.

One page, exploited first. Settings, System, Security alerts lists every finding: the package, the installed version, the advisory (a link, with the CVE), the severity, an "Exploited, patch now" label, and the first version that is not affected. "Check now" runs the check straight away.

An honest "not checked" list. Plugins unpacked from a zip into custom/plugins are not in composer.lock, so no advisory feed covers them. They are listed with their name and version, marked "not checked (not installed with Composer)", in the page, the CLI and the JSON.

Features

  • Core and Composer extensions. The exact versions come from composer.lock: shopware/core, the storefront and administration packages, and every plugin and app installed with Composer.
  • Exploited in the wild, first. Findings whose CVE is on the CISA Known Exploited Vulnerabilities list are labelled, sorted first and always emailed.
  • Only what is new. Findings are stored, so you get an email for a new finding, or for one that has become exploited, and not the same list every morning.
  • A fix version. For each finding, the first version that is not affected, matched locally with composer/semver.
  • Everywhere you need it. A daily scheduled task, a page in the administration, an email, a console command for CI, and an event for your own tooling.
  • Free, no keys. Advisories come from Valtry's signed Advisory API, with Packagist's security advisories and the CISA catalogue as automatic fallback, all without an account. One setting, or one environment variable, keeps every request off Valtry (see What it sends).
  • Cheap. A handful of HTTPS requests a day.

Watching many shops? Valtry checks every site from the outside, daily.

What it sends

By default the plugin asks Valtry's Advisory API first, and falls back to the public sources on its own whenever Valtry cannot answer.

Path Used for What leaves your server
Valtry Advisory API (default) Advisories for the Composer packages, and whether CISA lists each as exploited Package names only, and a random nonce. Never versions: they are matched on your server.
Packagist (fallback, or opted out) Advisories for the Composer packages Package names only.
CISA catalogue (fallback, or opted out) Exploited in the wild Nothing: the whole catalogue is downloaded.
  • Versions never leave the server. Neither does the shop URL, customer or order data, or the names of plugins that are not installed with Composer.
  • Answers are signed. Every Valtry answer carries an Ed25519 signature that is checked against public keys built into the plugin's core library, plus the nonce and the list of packages asked about. An answer that does not verify is discarded.
  • It falls back automatically. If Valtry cannot be reached within 5 seconds, answers with an error, sends an answer that does not verify, or says its data is out of date, the check uses Packagist and CISA instead (and leaves Valtry alone for five minutes). The administration page and the command say which source answered.
  • Valtry does not log or store the names it is sent, or pair them with your address. Its privacy terms are on its Advisory API page.
  • One-line opt-out. Set Advisory source to Public sources only in the plugin settings, or set RUVELO_ADVISORIES_SOURCE=public in the server environment (which wins over the setting). Then only packagist.org and cisa.gov are contacted, exactly as in version 1.0.

There is no account and there are no keys. The requests use Guzzle (already part of Shopware), which honours HTTP_PROXY and HTTPS_PROXY.

What it does not cover

  • Plugins that are not installed with Composer (zips under custom/plugins, including Store downloads that are not managed by Composer). They are listed as not checked. Watch their vendors' release notes.
  • Shopware apps installed from a manifest, and cloud apps. They are not Composer packages and are not listed.
  • Flaws nobody has published. It knows what Packagist's advisory database (built on GitHub's and FriendsOfPHP's) lists, and which of those CVEs CISA says are exploited. It is an early warning, not a scanner: it does not read your files, themes or admin users.
  • Backported fixes. The free Shopware Security Plugin backports core fixes without changing the version number, so a finding for shopware/core can describe a flaw that plugin already fixes. This plugin cannot see that. Use both: that one patches, this one tells you what is open.
  • Isolated patches applied by hand do not change composer.lock, so the finding stays.

Requirements

Shopware 6.6 or 6.7, PHP 8.2 to 8.4, and a composer.lock in the project root (the standard shopware/production layout). Both versions are installed for real in CI.

Install

composer require ruvelo/shopware-security-alerts
bin/console plugin:refresh
bin/console plugin:install --activate RuveloSecurityAlerts
bin/build-administration.sh     # builds the administration; part of every Shopware deploy

The administration source is in src/Resources/app/administration/src, and Shopware builds it with the rest of the administration. This is how store plugins ship, but this repository does not commit built files. If you install from a git checkout or a zip without running bin/build-administration.sh, the page will not appear, while the command, the scheduled task and the emails still work.

Shopware Store notes

  • The plugin technical name is RuveloSecurityAlerts. composer.json carries the English and German labels and descriptions that Shopware reads.
  • CHANGELOG.md and CHANGELOG_en-GB.md are both present, as the Store asks for.
  • A Store upload should be built with the compiled administration assets in src/Resources/public/administration (for example with shopware-cli extension build). That step is not part of this repository and has not been done here.
  • The plugin has not been submitted to the Store.

Configuration

Settings, System, Plugins, then Ruvelo Security Alerts (or Extensions, My extensions).

Setting Default What it does
Send email alerts on Emails are sent only when this is on and there are recipients. The check runs daily either way.
Send alerts to empty Comma-separated addresses. Empty means no email.
Minimum severity medium Findings below it are not emailed. Exploited findings always are.
Advisory source Valtry first Valtry first, public sources as fallback (names only, signed answers) or Public sources only (Packagist and CISA, Valtry is never contacted). RUVELO_ADVISORIES_SOURCE=public in the environment forces the second.
Also check development packages off Include packages-dev from composer.lock.

The email goes through Shopware's mail service, so your mail settings (and MAILER_DSN) apply. The sender is the shop's own address (core.basicInformation.email), or the first recipient when the shop has none. It lists exploited findings first and contains nothing but the findings.

The scheduled task is ruvelo.security_alerts.check, daily. It needs the usual Shopware scheduler and message worker (scheduled-task:run and messenger:consume).

Permissions. The page needs the privilege Security alerts: viewer (Settings, Permissions), and "Check now" needs editor. Admins have both.

Command line

bin/console ruvelo:security-alerts:check [--json] [--fail-on=exploited|critical|high|medium|any] [--dry-run] [--fresh]
Option What it does
(none) Check, store what changed, email what is new, and print the findings
--json Print the report as JSON
--fail-on=… Exit with 1 when a finding is at least that bad (exploited is only the exploited ones)
--dry-run Only report: nothing stored, no email, no event
--fresh Ignore cached advisories

Exit codes: 0 fine, 1 a finding matched --fail-on, 2 the check was incomplete (no advisory source could answer, or CISA unreachable, or composer.lock unreadable) or an option is wrong. "No findings" is not "clean" when the exit code is 2.

bin/console ruvelo:security-alerts:check --dry-run --json --fail-on=exploited > alerts.json

The JSON is the core's report (checked_at, clean, complete, source, sources, packages, counts, problems, unchecked, notes, findings) plus not_checked (the same plugins as unchecked, in the form 1.0 used). source is valtry, public or mixed:

{
  "clean": false,
  "complete": true,
  "source": "valtry",
  "packages": { "composer": 312, "extension": 1 },
  "findings": [
    { "package": "livewire/livewire", "installed": "3.6.2", "severity": "critical", "cve": "CVE-2025-54068", "exploited": true, "fixed_in": "3.6.4" }
  ],
  "not_checked": [
    { "name": "AcmeZipDemo", "version": "1.4.2", "reason": "not checked (not installed with Composer)" }
  ]
}

(Shortened; each finding has more fields: key, advisory_id, title, link, kev, affected_versions and so on.)

Administration API

Both routes use the administration API scope and ACL.

Route Privilege Does
GET /api/_action/ruvelo-security-alerts/findings ruvelo_security_alerts:read Stored findings (exploited first), the not-checked plugins and the last check, including which advisory source answered
POST /api/_action/ruvelo-security-alerts/check ruvelo_security_alerts:check Runs a fresh check, as "Check now" does

Events

Ruvelo\SecurityAlerts\Event\SecurityFindingsFoundEvent (ruvelo.security_alerts.found) is dispatched after every recorded check that has at least one finding. It carries the core Report and Changes (new, exploited, resolved), so a listener can tell what is news. It is not dispatched for --dry-run.

FAQ

Does it patch anything? No. It tells you what to update.

Why is a finding still there after I updated? The check runs daily. Press "Check now", or run the command. A finding disappears only after a complete check that no longer matches.

Does it slow the shop down? Nothing runs on a storefront request. The daily task makes a handful of HTTP requests.

Is the list complete? No. See What it does not cover.

Development

composer install
composer check      # Pint, PHPStan level 8 and the unit tests, as CI runs them

Until ruvelo/security-advisories is on Packagist, CI adds it as a VCS repository, and so must you: composer config repositories.ruvelo-core vcs https://github.com/Ruvelo/security-advisories. That line is never committed. See CONTRIBUTING.md and the changelog.

CI also runs a real install on Shopware 6.6 and 6.7 with MySQL 8: plugin install and activation, the table, the scheduled task, the command against the live sources, an email caught by Mailpit, the administration API with a real token, the plugin's uninstall and, on 6.7, a build of the administration with a screenshot of the page.

Credits

Built by François Bultez at Valtry, the website security scanner, and everyone who contributes.

Advisory data comes from Valtry's Advisory API and, directly, from the Packagist security advisories API and the GitHub Advisory Database. The list of exploited vulnerabilities is the CISA KEV catalogue.

License

MIT. See LICENSE.