A vulnerability was determined in brikcss merge up to 1.3.0. This affects an unknown part. Executing a manipulation of the argument __proto__/constructor.prototype/prototype can lead to improperly controlled modification of object prototype attributes. The attack may be performed from remote. The vendor was contacted early about this disclosure but did not respond in any way.
CVE-2026-6594 is a prototype pollution vulnerability in brikcss merge library (≤1.3.0) that allows remote attackers to manipulate object prototypes through __proto__/constructor.prototype exploitation. With a CVSS score of 7.3 and no available patch, this poses a significant risk to applications using vulnerable versions. The lack of vendor response indicates prolonged exposure risk for dependent systems.
Immediate Actions:
1. Audit all applications and dependencies for brikcss usage (check package.json, npm audit, and dependency trees)
2. Identify systems running brikcss versions ≤1.3.0
3. Implement input validation and sanitization for all user-supplied data
4. Deploy Web Application Firewalls (WAF) with rules blocking __proto__, constructor.prototype, and prototype pollution patterns
Patching Guidance:
1. Upgrade brikcss to version >1.3.0 if available from alternative sources or forks
2. If upgrade unavailable, consider replacing brikcss with maintained alternatives (e.g., lodash.merge with Object.freeze protections)
3. Implement object property freezing: Object.freeze(Object.prototype) in application initialization (with caution)
Compensating Controls:
1. Use Content Security Policy (CSP) headers to restrict script execution
2. Implement strict input validation using allowlists for merge operations
3. Monitor for suspicious prototype manipulation attempts in application logs
4. Use Node.js --disable-proto flag if running on Node.js
Detection Rules:
1. Monitor for HTTP requests containing __proto__, constructor, or prototype in parameters
2. Alert on unexpected changes to Object.prototype properties
3. Log all merge/object manipulation operations with source tracking
4. Implement SIEM rules: regex pattern matching for (\.__proto__|constructor\.prototype|prototype\s*=)
الإجراءات الفورية:
1. تدقيق جميع التطبيقات والمكتبات للتحقق من استخدام brikcss (تحقق من package.json و npm audit)
2. تحديد الأنظمة التي تشغل إصدارات brikcss ≤1.3.0
3. تطبيق التحقق من صحة المدخلات وتنظيفها لجميع البيانات المدخلة من المستخدم
4. نشر جدران حماية تطبيقات الويب (WAF) برقابة على __proto__ و constructor.prototype
إرشادات التصحيح:
1. ترقية brikcss إلى إصدار >1.3.0 إن توفر
2. إذا لم يتوفر التحديث، استبدل brikcss بمكتبات بديلة مدعومة
3. تطبيق تجميد خصائص الكائنات: Object.freeze(Object.prototype)
الضوابط البديلة:
1. استخدام رؤوس سياسة أمان المحتوى (CSP)
2. تطبيق التحقق الصارم من المدخلات باستخدام قوائم السماح
3. مراقبة محاولات معالجة النموذج الأولي المريبة
4. استخدام علم Node.js --disable-proto
قواعد الكشف:
1. مراقبة طلبات HTTP التي تحتوي على __proto__ أو constructor أو prototype
2. تنبيهات على التغييرات غير المتوقعة في خصائص Object.prototype
3. تسجيل جميع عمليات الدمج مع تتبع المصدر
4. قواعس SIEM: (\.__proto__|constructor\.prototype|prototype\s*=)