@clear-capabilities/agentic-security-scanner 0.149.0 → 0.149.1
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/CHANGELOG.md +17 -0
- package/dist/agentic-security.mjs +1 -1
- package/dist/agentic-security.mjs.sha256 +1 -1
- package/package.json +1 -1
- package/src/engine.js +12 -10
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,23 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
## 0.149.1 - Fix scan hang on unbounded registry/OSV network calls
|
|
14
|
+
|
|
15
|
+
An SCA scan could hang indefinitely at "Registry metadata..." (or, less visibly, during OSV
|
|
16
|
+
lookup) with no timeout, no error, and no way to tell it apart from a genuine long-running scan.
|
|
17
|
+
`queryRegistries()` and `queryOSV()` in `src/engine.js` fired `fetch()` against npm, PyPI,
|
|
18
|
+
Packagist, crates.io, RubyGems, pub.dev, Maven Central, and the OSV API with no timeout at all —
|
|
19
|
+
if any single registry stalled (rate-limiting, a proxy silently dropping the connection, DNS),
|
|
20
|
+
the whole scan sat there forever, since Node's global `fetch` has no default timeout.
|
|
21
|
+
|
|
22
|
+
1. All 9 registry/OSV fetches now carry `AbortSignal.timeout(8000)`, matching the convention
|
|
23
|
+
already used for the KEV feed fetch.
|
|
24
|
+
2. `queryOSV`'s per-vulnerability detail fetch now also honors `AGENTIC_SECURITY_OFFLINE=1`, so
|
|
25
|
+
offline scans skip that network path instead of attempting and timing out on it.
|
|
26
|
+
3. `queryRegistries` deliberately does **not** honor `AGENTIC_SECURITY_OFFLINE` — that flag's
|
|
27
|
+
established scope in this codebase is OSV/KEV/EPSS, and `test/sca-deprecated.test.js` already
|
|
28
|
+
depends on registry lookups still running (against a stubbed fetch) under `OFFLINE=1`.
|
|
29
|
+
|
|
13
30
|
## 0.149.0 - Live progress reporting for long-running scans
|
|
14
31
|
|
|
15
32
|
A scan running deep interprocedural taint analysis or the Data Flow Explorer's lineage graph
|