eslint-plugin-browser-security 0.0.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,15 @@
|
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
7
|
[](https://app.codecov.io/gh/ofri-peretz/eslint/components?components%5B0%5D=browser_security)
|
|
8
8
|
|
|
9
|
+
## 💡 What You Get
|
|
10
|
+
|
|
11
|
+
- **21 security rules** targeting browser-specific vulnerabilities
|
|
12
|
+
- **XSS prevention** via DOM manipulation and dynamic content detection
|
|
13
|
+
- **Storage security** preventing sensitive data exposure in localStorage/sessionStorage/IndexedDB
|
|
14
|
+
- **Cross-origin protection** with postMessage origin validation
|
|
15
|
+
- **LLM-optimized messages** with CWE references and auto-fix suggestions
|
|
16
|
+
- **OWASP Top 10 coverage** for browser security patterns
|
|
17
|
+
|
|
9
18
|
## 🎯 Why This Plugin?
|
|
10
19
|
|
|
11
20
|
Modern browser applications face unique security challenges across storage APIs, cross-origin communication, and dynamic content rendering. This plugin provides static analysis rules specifically designed for browser security patterns:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-browser-security",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Security-focused ESLint plugin for browser applications. Detects XSS vulnerabilities, postMessage abuse, localStorage/sessionStorage/IndexedDB token exposure, cookie security issues, WebSocket security, Blob URL leaks, Service Worker risks, and CSP misconfigurations.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|