目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2026-12047— pgadmin 4 输出处理不当漏洞

一分钟漏洞结论

影响对象
pgadmin.org pgAdmin 4
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

pgadmin 4是pgAdmin组织开源的一款数据库管理工具。 pgAdmin 4 6.6版本至9.16之前版本存在安全漏洞,该漏洞源于云部署模块中未对SDK异常文本进行HTML编码,导致HTML注入,可能允许经过身份验证的攻击者通过精心构造的访问密钥实现跨站脚本攻击。

CVSS 3.5 · Low EPSS 0.14% · P4

影响版本矩阵 1

厂商产品 版本范围状态
pgadmin.org pgAdmin 4 6.6< 9.16 affected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-12047 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
pgAdmin 4: HTML injection in cloud verify_credentials / deploy endpoints via unsanitised SDK exception text
来源: CVE Program / CVE List V5
Vulnerability Description
HTML injection in pgAdmin 4's cloud deployment module. The verify_credentials, deploy, regions, and update-server endpoints under /rds/, /azure/, /google/, and the top-level /cloud/ blueprint propagated AWS / Azure / Google SDK exception text — and the related file-resolution and database-commit exception text — into the JSON response body (the info and errormsg fields) without HTML-encoding. The Cloud Wizard frontend rendered these strings through html-react-parser, so an attacker-influenced exception message embedded structural HTML directly into the wizard's DOM. The reported entry point is /rds/verify_credentials/. An authenticated pgAdmin user submits a crafted access_key whose value contains an <iframe/src=...> payload; AWS STS rejects the credential with an IncompleteSignature exception whose text quotes the access_key verbatim; the pgAdmin backend forwards that text into the JSON info field; the Cloud Wizard's FormFooterMessage parses it as HTML. The browser fetches the iframe's src from an attacker-controlled host, and JavaScript executing inside the cross-origin iframe writes to parent.location, redirecting the victim's pgAdmin tab. Because the injection renders inside pgAdmin's own interface, X-Frame-Options and Content-Security-Policy frame-ancestors do not mitigate it. Baseline impact is self-targeted (the same user who supplied the payload sees the injection); escalation against other authenticated users requires an additional cross-site request-forgery primitive capable of submitting the malformed credential request with a valid X-pgA-CSRFToken in the victim's browser context. The same unsanitised-error-into-JSON pattern was present across multiple sibling endpoints — Azure's check_cluster_name_availability, every Google endpoint that surfaces SDK errors (verification_ack, projects, regions, instance_types, database_versions, the verify_credentials path-resolution branches), the central /deploy endpoint that bubbles str(e) from deploy_on_rds / deploy_on_azure / deploy_on_google, and update_cloud_server which surfaces the str(e) from a failing db.session.commit — all of which are now covered. Fix HTML-escapes every external/SDK exception string at the endpoint sink via a new shared sanitize_external_text helper (HTML escape with control-character strip), promoted out of the psycopg3 driver into web/pgadmin/utils/text_sanitize.py. The Cloud Wizard frontend additionally renders its FormFooterMessage in plain-text mode for backend-derived strings, so the value is never parsed as HTML even if a future sink forgets the escape. This issue affects pgAdmin 4: from 6.6 before 9.16.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N
来源: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
来源: CVE Program / CVE List V5
Vulnerability Title
pgadmin 4 输出处理不当漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
pgadmin 4是pgAdmin组织开源的一款数据库管理工具。 pgAdmin 4 6.6版本至9.16之前版本存在安全漏洞,该漏洞源于云部署模块中未对SDK异常文本进行HTML编码,导致HTML注入,可能允许经过身份验证的攻击者通过精心构造的访问密钥实现跨站脚本攻击。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
pgadmin.org pgAdmin 4 6.6 ~ 9.16 -

二、漏洞 CVE-2026-12047 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-12047 的情报信息

登录查看更多情报信息。

CVE-2026-12047 其他参考 (1)

同批安全公告 · pgadmin.org · 2026-06-18 · 共 7 条

CVE-2026-12048 9.3 CRITICAL pgadmin 4 输出处理不当漏洞
CVE-2026-12045 9.0 CRITICAL pgAdmin 4 命令注入漏洞
CVE-2026-12046 9.0 CRITICAL pgadmin 4 授权问题漏洞
CVE-2026-12044 8.8 HIGH pgAdmin 4 输出处理不当漏洞
CVE-2026-12049 4.3 MEDIUM pgAdmin 4 输入验证错误漏洞
CVE-2026-12050 4.3 MEDIUM pgadmin 4 SQL注入漏洞

IV. Related Vulnerabilities

V. Comments for CVE-2026-12047

暂无评论


发表评论