CVE-2024-26484: Kirby Unsanitized Href Attr

Direct assignment of unvalidated object fields to the `href` attribute in `attr()` can result in Stored Cross-Site Scripting (XSS) via `javascript:` URIs. Ensure URLs are sanitized by terminating the method chain with `->toUrl()`.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0PHPβ
greprules fetch cve-2024-26484-kirby-unsanitized-href-attr --engine opengrep

Description

Direct assignment of unvalidated object fields to the `href` attribute in `attr()` can result in Stored Cross-Site Scripting (XSS) via `javascript:` URIs. Ensure URLs are sanitized by terminating the method chain with `->toUrl()`.