Security briefs and lessons for PHP, Laravel, and WordPress.
Written by Raghav. When a vulnerability matters, a brief names the affected versions and the fix. Lessons cover the defenses you should already be using. Claims are checked against the official sources they name.
Laravel published two moderate advisories for laravel/framework on 18 Nov 2026: Rule::exists()/Rule::unique() fluent where() values can be read as predicates, and exists can be bypassed by integer or boolean JSON input on MySQL/MariaDB. Upgrade to 12.73.0 or 13.43.0, add string rules before exists/unique, and keep independent ownership checks.
Five PHP advisories worth a look: Jane OpenAPI codegen RCE, Silverstripe framework RCE, Paymenter (Laravel/Livewire) unauthenticated method call, Contao admin self-grant, and a SimpleSAMLphp SAML2 signature bypass. None is on CISA KEV.
Do not log $request->all(), Authorization headers, cookies or passwords. Use Laravel's Log facade with a request id from Log::withContext() or shareContext(), and run context arrays through a redaction helper before writing them. Logs are often copied to Slack, files and log vendors — a secret in a log is a secret out of your app.
Laravel's documentation says the .env file should not be committed to source control. Keep APP_KEY and database credentials in the environment, set APP_DEBUG to false in production, and after config:cache only call env() from config files. If you need a file in git, use php artisan env:encrypt and store the decryption key in a password manager.
The PHP manual warns: do not pass untrusted input to unserialize(), regardless of allowed_classes. Unserialization can instantiate objects and run code during autoloading. Prefer json_encode() / json_decode() for data you accept from users, and treat allowed_classes as a hardening step for trusted payloads only.
WordPress nonces help prevent CSRF, but they are not one-time tokens and they are not authorization. Verify a nonce with check_admin_referer() or wp_verify_nonce(), and separately call current_user_can() in the request handler. Official documentation says you should always assume a nonce can be compromised.
Authorized security audits, malware cleanup, and PHP, Laravel or WordPress upgrades, only for sites you own or are authorized to manage. Price: Contact for quote.
Get new briefs by email
Short alerts when a PHP or WordPress vulnerability needs action.
Double opt-in via Buttondown; unsubscribe any time. See our privacy policy.