جزئیات آسیب‌پذیری

CVE-2026-33941

Red Hat Logging Subsystem for Red Hat OpenShiftRed Hat Developer HubRed Hat Enterprise Linux 10Red Hat Enterprise Linux 8Red Hat Enterprise Linux 9handlebars-lang handlebars.js

Handlebars.js has JavaScript Injection in CLI Precompiler via Unescaped Names and Options

CVSS 3.1
8.3بالا

شرح رسمی (انگلیسی)

Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, the Handlebars CLI precompiler (`bin/handlebars` / `lib/precompiler.js`) concatenates user-controlled strings — template file names and several CLI options — directly into the JavaScript it emits, without any escaping or sanitization. An attacker who can influence template filenames or CLI arguments can inject arbitrary JavaScript that executes when the generated bundle is loaded in Node.js or a browser. Version 4.7.9 fixes the issue. Some workarounds are available. First, validate all CLI inputs before invoking the precompiler. Reject filenames and option values that contain characters with JavaScript string-escaping significance (`"`, `'`, `;`, etc.). Second, use a fixed, trusted namespace string passed via a configuration file rather than command-line arguments in automated pipelines. Third, run the precompiler in a sandboxed environment (container with no write access to sensitive paths) to limit the impact of successful exploitation. Fourth, audit template filenames in any repository or package that is consumed by an automated build pipeline.

امتیازهای CVSS

امتیازنسخهمنبعبردار
8.3بالا 3.1 CVEProject cvelistV5 (CNA) (GitHub_M) CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
8.2بالا 3.1 CVEProject cvelistV5 (CNA) (redhat-SADP) CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

محصولات آسیب‌پذیر

فروشندهمحصولنسخه‌هامنبع
Red Hat Logging Subsystem for Red Hat OpenShift همه CVEProject cvelistV5 (CNA)
Red Hat Logging Subsystem for Red Hat OpenShift همه CVEProject cvelistV5 (CNA)
Red Hat Logging Subsystem for Red Hat OpenShift همه CVEProject cvelistV5 (CNA)
Red Hat Logging Subsystem for Red Hat OpenShift همه CVEProject cvelistV5 (CNA)
Red Hat Logging Subsystem for Red Hat OpenShift همه CVEProject cvelistV5 (CNA)
Red Hat Logging Subsystem for Red Hat OpenShift همه CVEProject cvelistV5 (CNA)
Red Hat Red Hat Developer Hub همه CVEProject cvelistV5 (CNA)
Red Hat Red Hat Enterprise Linux 10 همه CVEProject cvelistV5 (CNA)
Red Hat Red Hat Enterprise Linux 8 همه CVEProject cvelistV5 (CNA)
Red Hat Red Hat Enterprise Linux 9 همه CVEProject cvelistV5 (CNA)
handlebars-lang handlebars.js >= 4.0.0, < 4.7.9 CVEProject cvelistV5 (CNA)

منابع و راهنماها

۸
هشدار CVEهای بعدی این محصولمحصول را دنبال کنید تا آسیب‌پذیری‌های تازه را در تلگرام بگیرید.

اطلاعات

تاریخ انتشار
۱۴۰۵/۰۱/۰۸
آخرین به‌روزرسانی
۱۴۰۵/۰۶/۲۰
وضعیت
منتشرشده
صادرکننده (CNA)
GitHub_M

پیش‌بینی بهره‌برداری (EPSS)

۰٫۲۹٪
احتمال بهره‌برداری در ۳۰ روز
۲۲٫۳٪
صدک (نسبت به همه‌ی CVEها)

ارزیابی SSVC (CISA)

قابل خودکارسازی
خیر
وضعیت بهره‌برداری
اثبات مفهوم
اثر فنی
کامل

ضعف‌ها (CWE)

  • CWE-79
    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-116
    Improper Encoding or Escaping of Output
  • CWE-94
    Improper Control of Generation of Code ('Code Injection')