Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-48157— Slim has Reflected XSS in the HtmlErrorRenderer

Quick assessment

Affected
slimphp Slim
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

slimphp Slim是slimphp的一个轻量级PHP开发框架。 Slim 4.4.0版本至4.15.2之前版本存在跨站脚本漏洞,该漏洞源于当应用使用HttpException::setTitle()或setDescription()包含未验证/请求数据时,未转义数据在HTML错误页面中被渲染,可能导致攻击者注入任意HTML/JavaScript。

CVSS 6.1 · Medium EPSS 0.26% · P17

Affected Version Matrix 1

VendorProduct Version RangeStatus
slimphp Slim >= 4.4.0, < 4.15.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-48157

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Slim has Reflected XSS in the HtmlErrorRenderer
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5
Vulnerability Title
slimphp Slim 跨站脚本漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
slimphp Slim是slimphp的一个轻量级PHP开发框架。 Slim 4.4.0版本至4.15.2之前版本存在跨站脚本漏洞,该漏洞源于当应用使用HttpException::setTitle()或setDescription()包含未验证/请求数据时,未转义数据在HTML错误页面中被渲染,可能导致攻击者注入任意HTML/JavaScript。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
slimphp Slim >= 4.4.0, < 4.15.2 -

II. Public POCs for CVE-2026-48157

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-48157

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-48157 (1)

Vendor Pages for CVE-2026-48157 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-48157

No comments yet


Leave a comment