Stored-value XSS in FilamentPHP Filament color components

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2024-47186?

CVE-2024-47186 is a vulnerability classified as Improper Neutralization of Input During Web Page Generation, affecting filament (affected versions: >= 3.0.0, < 3.2.115). This vulnerability is rated Medium, with a CVSS score of 6.1. Current sources do not report this vulnerability as exploited.

Overview

Original source data

Filament is a collection of full-stack components for Laravel development. Versions of Filament from v3.0.0 through v3.2.114 are affected by a cross-site scripting (XSS) vulnerability. If values passed to a ColorColumn or ColumnEntry are not valid and contain a specific set of characters, applications are vulnerable to XSS attack against a user who opens a page on which a color column or entry is rendered. Filament v3.2.115 fixes this issue.

Affected products and scope

  • filament/infolists from FilamentPHP, Composer package: affected for >= 3.0.0, < 3.2.115; fixed in 3.2.115.
  • filament/tables from FilamentPHP, Composer package: affected for >= 3.0.0, < 3.2.115; fixed in 3.2.115.
  • This range corresponds to Filament v3.0.0 through v3.2.114 in the vendor description. The reviewed evidence does not establish affected or fixed boundaries for other parallel major branches, so their status should not be inferred.

Technical details

This is a CWE-79 vulnerability in the generation of web page output. Values supplied to ColorColumn or ColumnEntry are expected to be valid colors, but invalid values containing a specific set of characters can reach rendered inline styles. The vendor advisory identifies Laravel's @style() Blade directive as the relevant sink and states that special characters are not fully escaped there. When the value is rendered, attacker-controlled data can break out of the style attribute context and cause the browser to execute JavaScript. Exploitation requires an untrusted value to enter data rendered by one of these components and another user to open the corresponding page. The specific application workflow that allows an attacker to introduce the value is not established by the record.

Exploitability

The vulnerability is reachable over the network; the normalized record describes no prior privileges, low attack complexity, and required user interaction when a victim opens a page rendering the affected component. Exploitation still depends on getting an invalid or untrusted color value into data that the application renders. The record marks the public-exploit field false, while the known-exploited field is null; therefore, the supplied evidence does not establish exploitation in deployed environments. No named exploit, campaign, or victim is identified in the available evidence.

Technical impact

The vulnerability allows data rendered by ColorColumn or ColumnEntry to move from a style context into executable HTML or script in the user's browser. The technical result is XSS whose impact can extend beyond the vulnerable component to resources accessible through the user's session. Actual consequences depend on the victim's permissions, the data present on the page, and additional application security controls. The record describes low confidentiality and integrity impact, no availability impact, and a requirement for the victim to open the page.

Business impact

  • Malicious JavaScript may execute in the browser of a user who opens an affected page, with access corresponding to the application context available to that user.
  • Depending on the user's permissions, consequences may include reading data accessible in the session, performing actions as the user, or altering rendered content.
  • Pages used for administration, operations, or data handling may increase the value of a compromised session, but the record does not identify a particular target role.
  • There is no evidence that the vulnerability directly causes service unavailability; the primary risk is loss of confidentiality and integrity in the browser and application context.

Remediation

  1. Upgrade the affected Filament packages, including filament/infolists and filament/tables, to 3.2.115, the release identified by the vendor advisory as fixing the issue. Verify the lockfile after the update so that both packages resolve to the fixed release.
  2. Apply the vendor's color-validation guidance to all data supplied to ColorColumn or ColumnEntry. The advisory specifically recommends validating colors, including workflows that accept input through the ColorPicker component.
  3. Review stored data and input sources that may contain untrusted color values. Cleaning or replacing invalid values may be appropriate as a precaution, but the advisory does not provide a specific data-cleaning procedure.
  4. If an immediate update is not possible, constrain input at the application boundary to valid color syntax and avoid rendering untrusted data through the affected components. This is only temporary risk reduction; the advisory does not confirm a complete workaround that replaces the update.

Detection

  • Inventory Composer manifests and lockfiles to determine whether filament/infolists or filament/tables is present, then compare the resolved versions with the affected and fixed boundaries.
  • Review source code for uses of ColorColumn and ColumnEntry, and trace the data fields that supply their values.
  • Check validation and normalization rules for color fields. Review stored data for values that do not match the expected color syntax or that contain markup-like characters, without executing those values during testing.
  • Review pages that render these components and examine any existing CSP reports or client-side telemetry as supplementary monitoring. This is precautionary telemetry, not a confirmed CVE-specific indicator.
  • The available evidence does not define a log signature or IOC. The absence of suspicious events does not prove that an application is safe.
Sources (25)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.