All vulnerabilities

Servers and applications

GHSA-58jq-583v-r2jw

HTML attribute injection in Markdown mail when Markdown::withSecuredEncoding() is enabled

Severity
Low 2.6
Published
2 Dec 2026
Last changed
2 Dec 2026
Added to UpHeron
2 Dec 2026
Fixed in
12.74.0, 13.44.1
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · Only under certain conditions · Needs a user account · Needs someone to click or open something
Attacker can
Change some data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N
Sources
Project advisories (GitHub)

Description

When Markdown::withSecuredEncoding() is enabled, values echoed with {{ }} in Markdown mail templates are not escaped for double quotes, single quotes or ampersands. A value rendered inside an HTML attribute can break out of it and inject additional attributes into the email. Applications that do not enable withSecuredEncoding() are not affected.

Applications that enable Markdown::withSecuredEncoding() and render user-controlled data inside an HTML attribute in a Markdown mail template, including via the mail::button URL, allow attribute injection into the generated email. This can alter link targets or styling for phishing, and leads to XSS where the mailable is rendered in a context that executes script.

Fixed in https://github.com/laravel/framework/pull/62597

From laravel/framework's security advisory.

Affected software

SoftwareAffected versions
LaravelServers and applications · github:laravel/framework
  • From 12.14.1 before 12.74.0
  • From 13.0.0 before 13.44.1

About Laravel

open source web application framework, written in PHP

From Wikidata, CC0 1.0.
Developers who used it in the past year
8.9%Stack Overflow Developer Survey 2025, 2025
Monthly downloads (Packagist)
28,544,906Packagist, 29 Nov 2026
Total downloads (Packagist)
637,079,484Packagist, 29 Nov 2026
GitHub stars
35,235GitHub, 29 Nov 2026
Forks
12,190GitHub, 29 Nov 2026
Latest release
v13.44.1GitHub, 29 Nov 2026
Released
24 Nov 2026GitHub
Developer
Taylor OtwellWikidata
License
MIT LicenseWikidata
Written in
PHPWikidata
First released
9 Jun 2011Wikidata
First published on GitHub
10 Jan 2013GitHub

Release lines

ReleaseLatestSecurity fixes
1313.44.1Until 17 Mar 2028
1212.74.0Until 24 Feb 2027
1111.57.2Ended 12 Mar 2026
1010.50.5Ended 4 Feb 2025
99.52.24Ended 6 Feb 2024
88.83.29Ended 24 Jan 2023

From endoflife.date.

References