6.1 MEDIUM
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Privileges Required (PR): None (N)
- User Interaction (UI): Required (R)
- Scope (S): Changed (C)
- Confidentiality (C): Low (L)
- Integrity (I): Low (L)
- Availability (A): None (N)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): Required (R)
- Modified Confidentiality (MC): Low (L)
- Modified Scope (MS): Changed (C)
- Modified Integrity (MI): Low (L)
- Modified Availability (MA): None (N)
by @LeSuisse Activity log
- Created suggestion
- @LeSuisse dismissed (not in Nixpkgs)
Slim has Reflected XSS in the HtmlErrorRenderer
Slim is a PHP micro framework that enables users to write simple web applications and APIs. In versions 4.4.0 through 4.15, if an application uses HttpException::setTitle() and/or setDescription() to include untrusted/request-derived data in the error title or description (e.g. "No products found matching '{$query}'."), an attacker could inject arbitrary HTML/JavaScript that executes in the victim's browser when they encounter an HTML error page generated by Slim. The vulnerability is present even with displayErrorDetails = false as the unescaped title and description are rendered on this error path. Built-in exceptions (HttpNotFoundException, HttpBadRequestException, etc.) ship plain-text defaults, so a vanilla Slim app with no user code is not exploitable. Only applications that feed untrusted data into setTitle() and/or setDescription() are affected. The issue has been fixed in 4.15.2. If developers are unable to immediately update their applications, they can work around this issue by avoiding passing untrusted/request-derived data into HttpException::setTitle() and setDescription() and using static, plain-text error copy instead. They should also register a custom error renderer (an ErrorRendererInterface implementation, or a subclass of HtmlErrorRenderer that escapes the title and description) for the HTML media type.
References
-
https://github.com/slimphp/Slim/security/advisories/GHSA-53h4-8rc4-f539 x_refsource_CONFIRM
-
https://github.com/slimphp/Slim/releases/tag/4.15.2 x_refsource_MISC
Affected products
- ==>= 4.4.0, < 4.15.2
Matching in nixpkgs
pkgs.slimevr
App for facilitating full-body tracking in virtual reality
pkgs.slimserver
Lyrion Music Server (formerly Logitech Media Server) is open-source server software which controls a wide range of Squeezebox audio players
pkgs.docker-slim
Minify and secure Docker containers
pkgs.messer-slim
Evolutionary simulation framework
pkgs.nodejs-slim
Event-driven I/O framework for the V8 JavaScript engine
pkgs.nodejs-slim_20
Event-driven I/O framework for the V8 JavaScript engine
pkgs.nodejs-slim_22
Event-driven I/O framework for the V8 JavaScript engine
pkgs.nodejs-slim_24
Event-driven I/O framework for the V8 JavaScript engine
pkgs.nodejs-slim_26
Event-driven I/O framework for the V8 JavaScript engine
pkgs.slimevr-server
App for facilitating full-body tracking in virtual reality
pkgs.awslimitchecker
Script and python package to check your AWS service limits and usage via boto3
pkgs.prettier-d-slim
Makes prettier fast
pkgs.nodejs-slim_latest
Event-driven I/O framework for the V8 JavaScript engine
pkgs.python313Packages.pyslim
Tools for dealing with tree sequences coming to and from SLiM
pkgs.python314Packages.pyslim
Tools for dealing with tree sequences coming to and from SLiM
pkgs.haskellPackages.http-slim
A library for client/server HTTP with TLS support
pkgs.python313Packages.onnxslim
Toolkit to Help Optimize Onnx Model
pkgs.python314Packages.onnxslim
Toolkit to Help Optimize Onnx Model
pkgs.python313Packages.aioslimproto
Module to control Squeezebox players
pkgs.python314Packages.aioslimproto
Module to control Squeezebox players
pkgs.python313Packages.pydantic-ai-slim
GenAI Agent Framework, the Pydantic way
pkgs.python314Packages.pydantic-ai-slim
GenAI Agent Framework, the Pydantic way
pkgs.vimPlugins.nvim-treesitter-parsers.slim
Tree-sitter grammar for slim
-
nixos-unstable 0.0.0+rev=a06113f
- nixpkgs-unstable 0.0.0+rev=a06113f
- nixos-unstable-small 0.0.0+rev=a06113f
-
nixos-26.05 -
- nixos-26.05-small 0.0.0+rev=a06113f
- nixpkgs-26.05-darwin 0.0.0+rev=a06113f
Package maintainers
-
@mbrgm Marius Bergmann <marius@yeai.de>
-
@bzizou Bruno Bzeznik <Bruno@bzizou.net>
-
@aduh95 Antoine du Hamel <duhamelantoine1995@gmail.com>
-
@fabaff Fabian Affolter <mail@fabian-affolter.ch>
-
@mweinelt Martin Weinelt <hexa@darmstadt.ccc.de>
-
@loucass003 Lucas Lelievre <loucass003@gmail.com>
-
@adamcstephens Adam C. Stephens <happy.plan4249@valkor.net>
-
@jecaro Jean-Charles Quillet <jeancharles.quillet@gmail.com>