xploitscan-shared-rules 1.6.1 → 1.6.2
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/dist/index.cjs +24 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +24 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4343,7 +4343,12 @@ var complianceMap = {
|
|
|
4343
4343
|
var consoleLogProduction = {
|
|
4344
4344
|
id: "VC097",
|
|
4345
4345
|
title: "Console.log Left in Production Code",
|
|
4346
|
-
|
|
4346
|
+
// Demoted from "low" to "info" 2026-05-11. This is a code-hygiene
|
|
4347
|
+
// signal (leaked debug logs, occasionally PII), not a security
|
|
4348
|
+
// vulnerability in the OWASP sense. Was inflating severity counts
|
|
4349
|
+
// on real codebases (11+ hits on vibecheck's own scan), drowning
|
|
4350
|
+
// the actual security signal.
|
|
4351
|
+
severity: "info",
|
|
4347
4352
|
category: "Performance",
|
|
4348
4353
|
description: "console.log statements left in production code can leak sensitive data, slow down rendering, and clutter browser consoles.",
|
|
4349
4354
|
check(content, filePath) {
|
|
@@ -4366,7 +4371,11 @@ var consoleLogProduction = {
|
|
|
4366
4371
|
var syncFileOps = {
|
|
4367
4372
|
id: "VC098",
|
|
4368
4373
|
title: "Synchronous File Operations",
|
|
4369
|
-
|
|
4374
|
+
// Demoted from "medium" to "info" 2026-05-11. Already a Performance-
|
|
4375
|
+
// category rule (see below) — it's a perf concern, not a security
|
|
4376
|
+
// one, so it shouldn't have been at "medium" alongside actual
|
|
4377
|
+
// security findings. The severity scale should reflect risk class.
|
|
4378
|
+
severity: "info",
|
|
4370
4379
|
category: "Performance",
|
|
4371
4380
|
description: "Synchronous file operations (readFileSync, writeFileSync) block the event loop, causing all other requests to wait.",
|
|
4372
4381
|
check(content, filePath) {
|
|
@@ -4403,7 +4412,9 @@ var eventListenerLeak = {
|
|
|
4403
4412
|
var nPlusOneQuery = {
|
|
4404
4413
|
id: "VC100",
|
|
4405
4414
|
title: "N+1 Query Pattern Detected",
|
|
4406
|
-
|
|
4415
|
+
// Demoted from "medium" to "info" 2026-05-11. Performance pattern,
|
|
4416
|
+
// not a security issue — same rationale as VC098.
|
|
4417
|
+
severity: "info",
|
|
4407
4418
|
category: "Performance",
|
|
4408
4419
|
description: "Database queries inside loops cause N+1 performance problems \u2014 one query per iteration instead of a single batch query.",
|
|
4409
4420
|
check(content, filePath) {
|
|
@@ -4488,7 +4499,11 @@ var todoLeftInCode = {
|
|
|
4488
4499
|
var emptyCatchBlock = {
|
|
4489
4500
|
id: "VC104",
|
|
4490
4501
|
title: "Empty Catch Block",
|
|
4491
|
-
|
|
4502
|
+
// Demoted from "medium" to "info" 2026-05-11. Already a Code-Quality
|
|
4503
|
+
// category — empty catch blocks are a maintainability concern, not a
|
|
4504
|
+
// security vulnerability. Worth flagging, not worth counting as a
|
|
4505
|
+
// security "medium" alongside actual SQL-injection / XSS findings.
|
|
4506
|
+
severity: "info",
|
|
4492
4507
|
category: "Code Quality",
|
|
4493
4508
|
description: "Empty catch blocks silently swallow errors, making bugs impossible to diagnose. At minimum, log the error.",
|
|
4494
4509
|
check(content, filePath) {
|
|
@@ -4522,7 +4537,11 @@ var callbackHell = {
|
|
|
4522
4537
|
var magicNumbers = {
|
|
4523
4538
|
id: "VC106",
|
|
4524
4539
|
title: "Magic Numbers in Code",
|
|
4525
|
-
|
|
4540
|
+
// Demoted from "low" to "info" 2026-05-11. Already a Code-Quality
|
|
4541
|
+
// category — magic numbers are a style/readability concern, not a
|
|
4542
|
+
// security vulnerability. Was the single noisiest rule on the
|
|
4543
|
+
// vibecheck self-scan (44 hits) drowning real security signal.
|
|
4544
|
+
severity: "info",
|
|
4526
4545
|
category: "Code Quality",
|
|
4527
4546
|
description: "Unnamed numeric constants in conditions or calculations make code hard to understand. Extract them into named constants.",
|
|
4528
4547
|
check(content, filePath) {
|