jorijn/laravel-security-checker
| Install | |
|---|---|
composer require jorijn/laravel-security-checker |
|
| Latest Version: | v3.1.0 |
| PHP: | ^8.2 |
| Laravel: | 12 · 13 |
| Older releases: | 5 – 11 |
| License: | MIT |
| Last Updated: | Oct 6, 2026 |
| Links: | GitHub · Packagist |
Laravel Security Checker
This package provides an effortless way for you to check your local composer.lock against the Security Advisories Database.
It can either display the results in your console or email them to you on a scheduled basis. It uses Laravel's markdown system, so it should fit nicely in your styling.
[!WARNING] Version 3.x only sees about a quarter of the known PHP security advisories. It checks your
composer.lockagainst the FriendsOfPHP database (through Enlightn Security Checker). Most advisories nowadays are only published through the GitHub Advisory Database, which FriendsOfPHP does not include. Of the 7,866 advisories that Packagist knew about in November 2026, only 1,970 came from FriendsOfPHP, so roughly 75% will not be reported by this version.Version 4.0 will switch to Packagist's security advisory data, the same source that
composer audituses. Until then, consider runningcomposer auditas well, for example in your CI pipeline.
Screenshot
Installation
Require this package with composer using the following command:
composer require jorijn/laravel-security-checker
Configuration
If you want the package to send reports by email, you'll need to specify a recipient.
Option 1
Add it to your .env file.
LCS_MAIL_TO="someone@example.net"
To send the report to more than one address, separate them with commas:
LCS_MAIL_TO="someone@example.net,someone-else@example.net"
Option 2
Publish the configuration file and change it there.
php artisan vendor:publish --provider="Jorijn\LaravelSecurityChecker\ServiceProvider" --tag="config"
If you want to control on how the email is formatted you can have Laravel export the view for you using:
php artisan vendor:publish --provider="Jorijn\LaravelSecurityChecker\ServiceProvider" --tag="views"
If you published the views with an earlier version of this package, the CVE column of your copy of security-mail.blade.php shows 1 instead of the CVE identifier.
To fix it, replace {{ $information['cve'] or '' }} with {{ $information['cve'] ?? '' }} in that file.
By default, the package won't email you when there are no vulnerabilities found. You can change this setting by adding the following entry to your .env file.
LCS_NOTIFY_WITHOUT_VULNERABILITIES=true
Values like 1, yes and on work as well. This setting also applies to Slack.
Slack
If you want the package to send the report to a Slack channel, you will need to specify a Slack Webhook
in your .env file.
E.g.:
LCS_SLACK_WEBHOOK=https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
Excluding dev dependencies
If your dev dependencies never reach production, you can leave them out of the check by adding the following entry to your .env file.
LCS_EXCLUDE_DEV=true
Allowing known vulnerabilities
Sometimes a reported vulnerability doesn't affect you, or you've accepted the risk. You can stop it from being reported by
adding its CVE identifier or its exact advisory title to the allow list. In your .env file, use a single-quoted JSON array:
LCS_ALLOW_LIST='["CVE-2024-1234","Example vulnerability title"]'
If you have published the configuration file, you can use a regular PHP array for allow_list instead.
Keep in mind:
- Entries must match exactly, including case.
- An allowed title is ignored for every package with an advisory by that name.
- An invalid allow list is ignored and logged as a warning, so the check always runs and nothing is hidden by mistake.
Scheduling
The package exposes a new command for you:
php artisan security-check:email
You can hook it up into a regular crontab or add it to the Laravel Scheduler in routes/console.php like this:
use Illuminate\Support\Facades\Schedule;
Schedule::command('security-check:email')->weekly();
Use security-check:slack instead to send the report to Slack.
Running as a command
This package provides a wrapper around the Enlightn Security Checker command. You can call it using php artisan security-check:now.

Translations
If you need to translate this package into your own language you can do so by publishing the translation files:
php artisan vendor:publish --provider="Jorijn\LaravelSecurityChecker\ServiceProvider" --tag="translations"
The files are published to lang/vendor/laravel-security-checker (or resources/lang/vendor/laravel-security-checker if your application still uses resources/lang).
Please consider helping out by creating a pull request with your language to help out others.
Related Packages
Interactive CLI tool to check and update outdated Composer dependencies
A CLI tool that handles both Composer and npm dependencies for Laravel projects.
Laravel Package Service Provider for autoloading dependencies of packages in dev...
Track your application dependencies and there status within a Laravel Applicatio...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v3.1.0 | ^8.2 | ^12.0| | MIT | |
| v3.0.0 | ^8.2 | ^12.0| | MIT | |
| v2.6.0 | >=7.4| | ^6.0| | MIT | |
| v2.5.0 | >=7.4| | ^6.0| | MIT | |
| v2.4.0 | >=7.4| | ^6.0| | MIT | |
| v2.3.0 | >=7.2| | ^6.0| | MIT | |
| v2.2.1 | >=7.2| | ^6.0| | MIT | |
| v2.2.0 | >=7.2| | ^6.0| | MIT | |
| v2.1.0 | >=7.2 | 5.5.x| | MIT | |
| v2.0.0 | >=7.1.3 | 5.5.x| | MIT | |
| v1.2.0 | >=7.0 | 5.5.x| | MIT | |
| v1.1.1 | >=7.0 | 5.5.x| | MIT | |
| v1.1.0 | >=7.0 | 5.5.x| | MIT | |
| v1.0.0 | >=7.0 | 5.5.x| | MIT | |
| v0.3.0 | >=7.0 | 5.5.x| | MIT | |
| v0.2.2 | >=5.6.4 | ^5.0,>5.4,<5.6 | MIT | |
| v0.2.1 | >=5.6.4 | ^5.0,>5.4,<5.6 | MIT | |
| v0.2.0 | >=5.6.4 | ^5.0,>5.4,<5.6 | MIT | |
| v0.1.1 | >=5.5.9 | ^5.0,>5.4,<5.6 | MIT | |
| v0.1.0 | >=5.5.9 | ^5.0,>5.4,<5.6 | MIT |