Laravel 漏洞与安全更新
506 条
12月4日周五
Laravel: Numeric validation can exhaust resources via extreme exponent input
受影响: composer:laravel/framework < 12.74.0 → 12.74.0, composer:laravel/framework >= 13.0.0, < 13.44.1 → 13.44.1 The multiple_of validation rule, and the gt, gte, lt and lte rules when they compare against another numeric field, expand numeric input using arbitrary-precision arithmetic without bounding its exponent. A request containing a very small or very large exponent value, such as one in scientific notation, can cause excessive memory and CPU use and may exhaust PHP's memory limit. Applications are affected when these rules are applied to an unbounded numeric field, with no preceding bounding rule s…
Laravel: Cross-Origin Auth Token Leakage Through Broadcasting JSONP Callback
受影响: composer:laravel/framework < 12.53.0 → 12.53.0 The Pusher and Reverb broadcasters answered the /broadcasting/auth endpoint with a JSONP response when a callback parameter was present. The endpoint also accepts GET requests without CSRF protection. A malicious page could therefore load the endpoint as a script and read the channel auth token of a logged-in user. With that token, an attacker could subscribe to the user's private and presence channels and receive their events. With the default SameSite=Lax session cookie, the attacker's page h…
Laravel: Fluent Rule::exists() and Rule::unique() where() values can be interpreted as reserved predicates instead of literal values
受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.73.0 When Rule::exists() or Rule::unique() is scoped with the fluent where() method, the condition is serialized into the string rule format and parsed again. A scalar value of NULL, NOT_NULL, or one starting with ! could be evaluated as an IS NULL, IS NOT NULL, or not-equal predicate instead of a literal comparison. If an attacker can influence a scope value, such as a tenant key, and the application relies on the rule to verify ownership of a referenced record, the validation can accept records fr…
Laravel: Quadratic regex backtracking in the decimal validation rule can cause denial of service
受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.73.0 The decimal validation rule counts decimal places with a regular expression that backtracks quadratically on certain input. A very long run of digits followed by an exponent (for example, a value ending in e5) passes the rule's is_numeric() check and then forces excessive regex backtracking before the match fails. Any application that validates a request field with the decimal rule is affected, with no non-default configuration. A single large request can consume several seconds of worker CPU,…
Laravel: `in` / `Rule::in` validation rule bypass via loose comparison
受影响: composer:laravel/framework < 12.67.0 → 12.67.0, composer:laravel/framework >= 13.0.0, < 13.26.0 → 13.26.0 The in validation rule (and Rule::in, and not_in via the same code) compares the scalar input to the allowlist with a non-strict in_array(). PHP 8 then compares numeric strings numerically, so many values that are not literally in the list pass validation — including whitespace-padded, leading-zero, signed, and scientific-notation forms, and an embedded newline. The value returned by validated() / valid() is the raw, un-canonicalized input, so the attacker-controlled bytes flow through to the a…
Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB
受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.73.0 The exists and unique validation rules passed integer and boolean values from the request unchanged to the database query. On MySQL and MariaDB, comparing a string column with an integer casts the column to a number. As a result, JSON input such as 0, false or [0] could satisfy a rule like required|exists:invites,code on a non-numeric string column without a valid value. An unauthenticated attacker who can submit JSON could bypass "must reference an existing record" checks. PostgreSQL and SQLit…
Laravel: Nested sometimes validation rules skipped when value is __missing__
受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.72.0 → 12.72.0 When an attribute is nested or uses a wildcard (for example profile.age or items..quantity) and is validated with the sometimes rule, submitting the literal string __missing__ as its value causes the attribute to be treated as absent. All of its rules are skipped, the request passes validation, and the unvalidated value is returned by validated(). Applications may then store or process input that did not satisfy the declared rules. Top-level attributes and nested attributes without sometimes ar…
Laravel: Unbounded $ref chain resolution in Illuminate\JsonSchema\Deserializer allows denial of service
受影响: composer:laravel/framework < 12.73.0 → 12.73.0, composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0 Illuminate\JsonSchema\Deserializer resolved chained local $ref pointers recursively without limiting the depth of the chain. Applications that pass attacker-influenced JSON Schema data to JsonSchema::fromArray() or Deserializer::deserialize() could be sent a crafted schema containing a long linear chain of $ref references. Resolving it consumes memory and CPU rapidly and can exhaust the PHP memory limit, terminating the worker process. Repeated requests can sustain the outage. Applications that…
Laravel: XSS via unescaped Stringable values in Blade component attribute bag
受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.73.0 Blade component attribute bags did not HTML-escape non-Htmlable object values, such as Illuminate\Support\Stringable, passed to ComponentAttributeBag::merge() or prepends(). Applications that place user-controlled Stringable values (for example, the result of request()->string()) into component attributes could allow an attacker to break out of the attribute and inject arbitrary attributes, such as event handlers. This results in cross-site scripting that runs in the origin of the application.…
Laravel: File validation bypass via empty input field colliding with an upload in Request::all()
受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.73.0 In Laravel 13.x, Request::all() let a text input with the same name as an uploaded file take precedence over the file. If an attacker submitted an empty value alongside the file, request validation (including FormRequest validation) saw the empty value instead of the upload. Rules such as nullable, image, mimes and max were then skipped. Applications that validate an optional upload this way and then read it with $request->file() or $request->hasFile() could therefore store files that bypassed…
Laravel: Unescaped bound attributes on Blade dynamic components that resolve to class-based components
受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.73.0 Blade's did not HTML-escape bound attributes (:attr="$value") when the target resolved to a class-based component. If user-controlled data was bound to an attribute that is not a constructor parameter and the component outputs {{ $attributes }}, the value could break out of the HTML attribute and lead to cross-site scripting (XSS). The same component rendered with its normal tag escaped the value correctly. Anonymous component targets were not affected. Patches The fix is merged on the 13.x and…
Laravel: Storage Signed URL Mode Confusion
受影响: composer:laravel/framework >= 13.0.0, < 13.26.0 → 13.26.0, composer:laravel/framework < 12.67.0 → 12.67.0 A temporary signed read URL for a private local-storage object can be replayed as a PUT upload to the same URL path. The route signature authenticates only the URL and query string, while the read/write mode is determined later from request input. Impact This vulnerability allows overwrite of files using a read-only temporary signed URL. Patches Patched in [#61145](https://github.com/laravel/framework/pull/61145)
Laravel: Denial of service in email validation via oversized Unicode domains
受影响: composer:laravel/framework < 12.72.0 → 12.72.0, composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0 Applications using the default Laravel email validation rule on untrusted input can be exposed to excessive CPU and memory consumption when validating oversized email addresses with specially crafted non-ASCII domains. The reported attack triggers expensive Unicode normalization during native IDN conversion when the PHP intl extension is enabled. An unauthenticated attacker who can submit values to an endpoint using this rule may occupy PHP workers and degrade application availability. Exposure…
Laravel: SQL Injection in Laravel PostgreSQL Query Grammar
受影响: composer:laravel/framework >= 13.0.0, < 13.24.0 → 13.24.0, composer:laravel/framework < 12.67.0 → 12.67.0 Laravel's PostgreSQL Query Grammar does not escape embedded single quotes in JSON path attributes when compiling non-raw Query Builder APIs. A user-influenced JSON path / identifier segment can break out of the single-quoted SQL string literal context used by PostgreSQL JSON operators. Impact This can lead to SQL structure injection and WHERE-condition manipulation when an application passes user-influenced JSON path input into affected Query Builder APIs. Patches [#60923](https://github.com/la…
Laravel: IP Spoofing via Host Header in TrustProxies Middleware Forge/Vapor Auto-Detection
受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.73.0 On applications with no trusted proxies configured, Laravel could treat a request as coming through a trusted Forge or Vapor proxy based on a header the visitor controls. An attacker could use this to fake their IP address and make an insecure request look like HTTPS. This can let an attacker get around IP-based rate limits, such as login throttling, and IP allowlists. Only applications that haven't configured trusted proxies, and whose web server accepts any hostname, are affected. Patch - Fix…
Laravel: Markdown secured encoding bypassed when Blade views are cached
受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.73.0 Applications that enable Markdown::withSecuredEncoding() to escape user-controlled data in Markdown mail and mail notifications may not get that protection when views have been precompiled with php artisan view:cache or php artisan optimize. The cached view, compiled with the default echo format, is reused when mail views are rendered, so the secured encoder never runs. An attacker who controls data included in an email, such as a user name, could inject Markdown links or remote images into the…
Laravel: Eloquent mass-assignment guard bypass via attribute-name normalization mismatch
受影响: composer:laravel/framework >= 13.0.0, < 13.43.0 → 13.43.0, composer:laravel/framework < 12.73.0 → 12.73.0 Eloquent's $guarded protection can be bypassed with an alternate spelling of a guarded attribute name, such as a hyphen or whitespace variant of is_admin. The guard check compared the raw key, while set-mutator resolution normalized it with Str::studly() or Str::camel(). Applications are affected when a model uses a $guarded blacklist, defines a set-mutator (classic or Attribute-based) on a guarded attribute, and mass-assigns untrusted input such as $request->all(). A remote client could then w…
Laravel: Sanctum guard can resolve the lowest-ID user when evaluated inside an eager-loaded Eloquent relation definition
受影响: composer:laravel/framework < 12.73.0 → 12.73.0 When an authenticated user is first resolved while Eloquent is initializing an eager-loaded relation, Eloquent's relation constraints are temporarily disabled. A lazy key-constrained lookup made during that window, such as Sanctum's token owner lookup, runs without its key restriction. The guard can then return the lowest-ID user (often an administrator) instead of the token's owner. This affects applications that call the guard inside a relation definition used with eager loading, for example…
12月3日周四
Introducing Laravel Go
Laravel Go is in beta, bringing Laravel's routing, validation, models, queues, workflows, mail, and Inertia to Go's net/http and goroutines.
12月2日周三
A letter to the Laravel community
Taylor Otwell on fifteen years of Laravel, why he built Laravel Rust, and why Laravel PHP isn't going anywhere.
Laravel Rust is here, and Laravel Cloud now runs your framework
Meet Laravel Rust, a batteries-included web framework for Rust. Laravel Cloud now runs Rails, Django, Go and Node apps, plus Cloud MCP, Issues and more.
Introducing Laravel Cloud Model Gateway
Laravel Cloud Model Gateway is in early access. Mint one key, use any model, and set a budget per key, from the Cloud CLI, the Cloud MCP, or the dashboard.
Introducing Laravel Rust
Laravel Rust is in beta, with routing, typed validation, models, queues, durable workflows, mail, broadcasting, and Inertia in idiomatic Rust.
Laravel Rust: 18× the throughput of Laravel PHP
We benchmarked six frameworks on Laravel Cloud, comparing throughput, latency, CPU usage, local and production build times, and wake-from-sleep latency.
Introducing Laravel Converse and Agent Kit
Laravel Converse connects your AI agents to Slack, Telegram, GitHub, and the web. Agent Kit gives you a working Laravel agent in one command.
A tale of two communities: Ruby on Rails on Laravel Cloud
Laravel Cloud now hosts Ruby on Rails apps, with automatic setup, autoscaling, scale to zero, managed databases, and deploys from your agent.
Wait, Laravel Does Rails?
Rails developer Jeremy Smith spent months putting Laravel Cloud through its paces for Rails apps. Here’s how he approached it, and where things stand.
How Laravel Cloud packs Kubernetes nodes efficiently
Packing pods onto fewer Kubernetes nodes saves us money. Here's how we move your apps without you noticing to keep the platform lean and up-to-date.
12月1日周二
From MySQL 8.0 to MariaDB 11.8 LTS: The Bagisto Experience
The Bagisto team are back! After sharing their experience using our MariaDB Vector for semantic search in their e-commerce platform Bagisto, the open-source platform built on Laravel, the Bagisto team is now focusing on another topic that is close to our hearts at the MariaDB Foundation: migrating from MySQL to MariaDB. How much effort is… From MySQL 8.0 to MariaDB 11.8 LTS: The Bagisto Experience appeared first on MariaDB.org
11月25日周三
Laracon EU 2027
Laracon EU 2027 brings together PHP and Laravel developers from around the world in Amsterdam, the Netherlands, from April 5–7, 2027. The conference features two days of inspiring talks and a dedicated workshop day, covering Laravel, modern PHP development, software architecture, artificial intelligence, performance, testing, and building real-world applications. Whether you're an experienced Laravel developer or just getting started, Laracon EU offers an opportunity to learn from industry experts, discover new technologies, exchange ideas, and connect with the international PHP and Laravel c…
11月14日周六
Laravel: Task Output Injection - Concurrency Process
受影响: composer:laravel/framework < 12.71.0 → 12.71.0, composer:laravel/framework >= 13.0.0, < 13.40.0 → 13.40.0 If a concurrency task prints user-controlled text, an attacker can forge the framework's internal result message and achieve remote code execution in certain conditions Pre-reqs Insecure code and insecure handling of user provided input (devs trust user-provided input) : 1. App has a route that reaches Concurrency::run() (Not by default, it requires app code) 2. The task writes user-controlled data to stdout (echo/print/dd of input, hand-built JSON via string concat, passthrough of tool output)…
11月13日周五
code16/sharp: Arbitrary class instantiation through the embed_key API parameter
受影响: composer:code16/sharp < 9.23.0 → 9.23.0, composer:code16/sharp >= 10.0.0-beta.1, < 10.0.0-beta.4 → 10.0.0-beta.4 An authenticated attacker can instantiate any class in the PHP application by using the embed_key parameter across multiple API endpoints. The instantiation is performed by the Laravel container. As a result, the __construct() method of the class is called and all constructor dependencies are resolved. The attacker cannot specify parameter values and cannot call any arbitrary method. Patches The problem has been patched in 9.23.0 and pre-release version 10.0.0-beta.4. An additional check was ad…
11月5日周四
Laravel October Product Updates
Resend email on Laravel Cloud, QUERY routes in the Laravel framework, and PHP security advisories in Forge. Here's everything that shipped in October.
Post Mortem: Patching the PHP and Node.js Vulnerabilities
How we patched every Laravel Cloud app in place within about 27 hours of the PHP and Node.js disclosures, what broke on Forge, Envoyer, and Vapor, and what we are changing.
10月28日周三
Build an “ask the docs” app with Laravel 13 and MariaDB Vector
Earlier this month we wrote that Laravel 13 now supports MariaDB Vector natively. Mohamed Touhami Rhaima, one of the community contributors who made that happen, has now written a tutorial on how to use it, and recorded a video version. Why MariaDB Vector in Laravel With Laravel 13 and MariaDB 11.7 or later, you can… Build an “ask the docs” app with Laravel 13 and MariaDB Vector appeared first on MariaDB.org
Weekly Report: LaravelのTokenGuardに認証回避につながる脆弱性
LaravelのTokenGuardに認証回避につながる脆弱性
10月24日周六
Laravel TokenGuard authentication bypass through non-string API credentials
受影响: composer:laravel/framework >= 13.0.0, < 13.29.0 → 13.29.0, composer:laravel/framework < 12.68.0 → 12.68.0 Laravel's built-in TokenGuard, when configured with a standard token-based API guard, may be bypassed to authenticate as an arbitrary existing user without knowledge of their valid API token. Under certain database configurations (MySQL/MariaDB) an attacker can submit a specially crafted, non-string credential value that is mishandled during the authentication lookup, causing the underlying query to match an unintended user record rather than failing authentication as expected. Impact An unauth…
Laravel relationship inclusion can trigger unauthorized data destruction
受影响: composer:laravel/framework >= 12.45.0, < 12.68.0 → 12.68.0, composer:laravel/framework >= 13.0.0, < 13.27.0 → 13.27.0 A vulnerability in how relationship inclusion is processed on certain read endpoints. Under specific conditions, a request to a read-only endpoint can be crafted to trigger a destructive database operation on a related table, rather than simply retrieving data. Impact A user with only read access could cause irreversible data loss (e.g., a related table being emptied), without needing any write permissions. This could result in denial of service and loss of data integrity for affected applicati…
10月23日周五
ThreatsDay: AI Secrets Leak, PingCAP Source Theft, Signal Hang-Up Flaw, Laravel Auth Bypass + 21 More
This week has already been rough for cybersecurity. Critical PHP and GitLab RCE flaws, serious Linux security bugs, compromised eMudhra certificates, a Node.js RCE flaw, a hacked LiteLLM release, and hundreds of hijacked Tor relays. That's a lot to deal with in just a few days. And the week isn't even over yet. But those big headlines are only half the story. Stolen passwords, exposed
10月21日周三
PHP critical vulnerability response updates
At 13:40 UTC two critical security vulnerabilities were disclosed and patched in PHP. These are extremely serious vulnerabilities affecting every PHP application on the web. Action may be required, read below.
10月16日周五
MariaDB Foundation Newsletter – 15 October 2026
The first half of October belonged to the ecosystem. The MariaDB Ecosystem Hub passed 200 entries six months after launch, Laravel 13 gained native MariaDB Vector support through community contributors, and Frappe and Solanica joined the Foundation as Silver Sponsors. The Foundation’s testing framework learned PostgreSQL, reproduced a regression reported by Mark Callaghan and confirmed… MariaDB Foundation Newsletter – 15 October 2026 appeared first on MariaDB.org
10月15日周四
Add email to any Laravel Cloud environment with the Resend
Resend is now a first-party Laravel Cloud integration. Connect once, verify a domain, and attach email to an environment like any other resource.
10月7日周三
Laravel 13 now supports MariaDB Vector natively
If your Laravel application runs on MariaDB, you can add semantic search to it without a second database, an external vector service or an extra package. Since Laravel 13.28, vector columns, vector indexes and similarity queries work on MariaDB out of the box. A large part of that work came from community contributors, including Mohamed… Laravel 13 now supports MariaDB Vector natively appeared first on MariaDB.org
10月2日周五
Laravel September product updates
Laravel Cloud added isolated preview environments and request metrics. The framework added per-tenant AI keys and semantic search. See what's new in September.
10月1日周四
Migrating Pinkary from Laravel Forge to Laravel Cloud: An engineering playbook
Pinkary's move from Laravel Forge to Laravel Cloud exposed SQLite and MySQL differences, query assumptions, and local-storage coupling. Here is the code-backed migration playbook.
9月28日周一
Preview environments and scale to zero: Better together
Give every pull request its own preview environment on Laravel Cloud. Share a link, test the full stack, and let idle previews scale to zero.
9月23日周三
Introducing Laravel AI SDK v1.0
Laravel AI SDK v1.0 is here: one Laravel-native API for every provider, with conversation storage, streaming chat, agents, tool approvals, and Jev classification.
9月11日周五
A better way to build MCP servers with Laravel
Every MCP tool loads on every request. Laravel MCP 1.0 fixes that with searchable tool catalogs: the same payload for 10 or 100 tools.
9月10日周四
Why I think we should write our own PR descriptions
Agents can write your PR descriptions, but they shouldn't. Here's why writing them yourself makes you a better engineer and a better teammate.