circle-ir-ai 2.9.0 → 2.10.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 +132 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,138 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.10.1] - 2026-06-16
|
|
9
|
+
|
|
10
|
+
### Changed — circle-ir 3.56.0 → 3.57.0
|
|
11
|
+
|
|
12
|
+
Drop-in engine bump for upstream Sprint 8. The engine-only changes
|
|
13
|
+
surface as additional / refined `findings[].type` values through the
|
|
14
|
+
same `analyze()` / mastra workflow output — no API breaks, no flag
|
|
15
|
+
additions on this layer.
|
|
16
|
+
|
|
17
|
+
**Sprint 8 — Java taint propagation + cross-language precision**
|
|
18
|
+
(cognium-dev #50, #51, #62, #73, #84, #90, #91)
|
|
19
|
+
|
|
20
|
+
- **#84 — Java for-each element-taint.** `for (String x : taintedList)`
|
|
21
|
+
now propagates collection taint to the loop variable, so downstream
|
|
22
|
+
uses at sinks (`stmt.executeQuery("..." + x + "...")`) fire as
|
|
23
|
+
expected.
|
|
24
|
+
- **#62 (partial) — Map.put + StringBuilder propagation.**
|
|
25
|
+
`m.put(k, tainted)` seeds `m` into `tainted` so `m.get(k)` at a
|
|
26
|
+
sink fires SQLi. `StringBuilder.append(tainted)` and
|
|
27
|
+
`StringBuffer.insert(off, tainted)` seed the builder into `tainted`
|
|
28
|
+
so `sb.toString()` at a sink fires.
|
|
29
|
+
- **#51 — Go `filepath` / `path` path-traversal sanitizers.**
|
|
30
|
+
`filepath.Base`, `filepath.Clean`, `path.Clean`, and
|
|
31
|
+
`filepath.EvalSymlinks` are now recognized as `path_traversal`
|
|
32
|
+
sanitizers in `DEFAULT_SANITIZERS`, mirroring the Java
|
|
33
|
+
`getCanonicalPath` / `Path.toRealPath` treatment.
|
|
34
|
+
- **#50 — `SecurityHeadersPass` global-middleware suppression.**
|
|
35
|
+
The file-level `missing-x-frame-options` and
|
|
36
|
+
`missing-csp-frame-ancestors` rules now check for a global header
|
|
37
|
+
middleware (Express `helmet()`, Spring `SecurityFilterChain`,
|
|
38
|
+
Flask `Talisman` / `@app.after_request`) before firing. Eliminates
|
|
39
|
+
per-handler false positives in projects with global header
|
|
40
|
+
installation.
|
|
41
|
+
- **#73 (part 1) — Bash function-local `$1`/`$2`.**
|
|
42
|
+
`findBashTaintSources` now tracks brace depth so `$1`–`$9` /
|
|
43
|
+
`$@` / `$*` inside function bodies are no longer conflated with
|
|
44
|
+
script-CLI positional sources. Regex-allowlist guard
|
|
45
|
+
(`[[ $x =~ ^… ]]`) is deferred to Sprint 9.
|
|
46
|
+
- **#90, #91, #49** — codified as regression fixtures from earlier
|
|
47
|
+
sprints (Fastjson typed-overload `parseObject`, `*Template.render`
|
|
48
|
+
receiver suppression, path canonicalization + XXE).
|
|
49
|
+
|
|
50
|
+
Full upstream notes: `circle-ir` 3.57.0 release notes.
|
|
51
|
+
|
|
52
|
+
## [2.10.0] - 2026-06-16
|
|
53
|
+
|
|
54
|
+
### Changed — circle-ir 3.52.0 → 3.56.0
|
|
55
|
+
|
|
56
|
+
Drop-in engine bump spanning four upstream feature releases. The
|
|
57
|
+
engine-only changes surface as additional `findings[].type` values
|
|
58
|
+
through the same `analyze()` / mastra workflow output — no API
|
|
59
|
+
breaks, no flag additions on this layer.
|
|
60
|
+
|
|
61
|
+
**3.53.0** (cognium-dev#52 + #87 partial)
|
|
62
|
+
|
|
63
|
+
- **Text4Shell (CVE-2022-42889, CWE-94)** — `StringSubstitutor.replace`
|
|
64
|
+
now fires both via explicit-ctor and the chained
|
|
65
|
+
`createInterpolator()` form.
|
|
66
|
+
- **FreeMarker SSTI (CWE-94)** — `new Template(name, new StringReader(taint), cfg)`
|
|
67
|
+
classified as `code_injection`.
|
|
68
|
+
- **Zip-Slip (CWE-22)** — `ZipEntry.getName` / `ZipArchiveEntry` /
|
|
69
|
+
`TarArchiveEntry` reclassified from sink → source, eliminating
|
|
70
|
+
3×-per-vuln noise. Exactly one `path_traversal` finding per real
|
|
71
|
+
flow.
|
|
72
|
+
- **Java weak-crypto config** — static / zero IV (CWE-329), hardcoded
|
|
73
|
+
symmetric key (CWE-321), weak RSA key size (CWE-326).
|
|
74
|
+
- **Taint matcher fix** — both `matchesSinkPattern` and
|
|
75
|
+
`matchesSourcePattern` now consult IR-resolved `receiver_type` /
|
|
76
|
+
`receiver_type_fqn` before falling back to name heuristic.
|
|
77
|
+
Unblocks all class-qualified sink/source patterns.
|
|
78
|
+
|
|
79
|
+
**3.54.0** (Sprint 5)
|
|
80
|
+
|
|
81
|
+
- **`jwt-verify-disabled` (CWE-347, pass #93)** — pure pattern pass
|
|
82
|
+
for PyJWT `options={"verify_signature": False}`, jsonwebtoken
|
|
83
|
+
`algorithms: ['none']`, auth0 `Algorithm.none()`, jjwt-0.x unsigned
|
|
84
|
+
`parse(token)`.
|
|
85
|
+
- **`redos` SinkType (CWE-1333)** — taint flow into regex
|
|
86
|
+
compile/match primitives (Python `re.*`, Java `Pattern.compile`,
|
|
87
|
+
JS `new RegExp`, Go `regexp.*`). Severity high (medium for Go —
|
|
88
|
+
non-backtracking).
|
|
89
|
+
- **`format_string` SinkType (CWE-134)** — taint flow into format
|
|
90
|
+
primitives (Java `String.format`/`printf`, Go `fmt.*`, Python
|
|
91
|
+
`ctypes printf`).
|
|
92
|
+
|
|
93
|
+
**3.55.0** (Sprint 6 — completes #86 9-category gap analysis)
|
|
94
|
+
|
|
95
|
+
- **`crlf` SinkType (CWE-113)** — HTTP response splitting via
|
|
96
|
+
`setHeader`/`addHeader` (Java/JS/Go). Re-routed from `xss` for
|
|
97
|
+
header-only sinks. Severity medium.
|
|
98
|
+
- **`mass_assignment` SinkType (CWE-915)** — `Object.assign`,
|
|
99
|
+
`_.merge`/`_.extend`, jQuery `$.extend`. Severity high.
|
|
100
|
+
- **`csrf-protection-disabled` (CWE-352, pass #94)** — explicit
|
|
101
|
+
`http.csrf().disable()`, `csrfTokenRepository(null)`,
|
|
102
|
+
`@csrf_exempt`. Severity critical.
|
|
103
|
+
- **`xml-entity-expansion` (CWE-776, pass #95)** — XXE / billion-laughs
|
|
104
|
+
via `SAXParserFactory.newInstance()` / `lxml.etree.parse` without
|
|
105
|
+
defusedxml or DTD-disable flags. Severity high.
|
|
106
|
+
- **`mass-assignment` pattern (CWE-915, pass #96)** — `User(**request.form)`,
|
|
107
|
+
`{...req.body}`. Complements the taint sink. Severity high.
|
|
108
|
+
- **`canSourceReachSink` coverage matrix** extended for `crlf` and
|
|
109
|
+
`mass_assignment` — without this, inline source-as-argument flow
|
|
110
|
+
(`res.setHeader('X-Tag', req.query.t)`) was silently rejected.
|
|
111
|
+
|
|
112
|
+
**3.56.0** (#87 — Sprint 7, cross-language `weak-crypto` parity)
|
|
113
|
+
|
|
114
|
+
- **Python weak-crypto config** — `modes.ECB()` (CWE-327),
|
|
115
|
+
`AES.new(b"literal", …)` and `algorithms.AES(b"literal")` (CWE-321),
|
|
116
|
+
`rsa.generate_private_key(key_size<2048)` (CWE-326).
|
|
117
|
+
- **Go weak-crypto config** — `aes.NewCipher([]byte("literal"))` +
|
|
118
|
+
`des`/`rc4` siblings (CWE-321), `rsa.GenerateKey(rand.Reader, N)`
|
|
119
|
+
with `N<2048` (CWE-326).
|
|
120
|
+
- Both languages support a regex-fallback literal-binding scan for
|
|
121
|
+
the two-line bind-then-use pattern; function parameters / runtime
|
|
122
|
+
values still ignored (no KMS/Vault FPs).
|
|
123
|
+
- Python plugin emits bytes literals as `b"…"`; the `weak-crypto`
|
|
124
|
+
pass now prefers `argument.expression` over `argument.literal`
|
|
125
|
+
for the inline regex (the `literal` field strips the trailing
|
|
126
|
+
quote).
|
|
127
|
+
|
|
128
|
+
### Counts
|
|
129
|
+
|
|
130
|
+
Upstream now ships **24 security passes** (was 19) and **8 pattern
|
|
131
|
+
passes** (was 4). Five new `SinkType` values surface through
|
|
132
|
+
`findings[].type`: `crlf`, `mass_assignment`, `redos`, `format_string`,
|
|
133
|
+
plus the existing `code_injection` / `path_traversal` re-routes from
|
|
134
|
+
the Text4Shell / Zip-Slip / FreeMarker fixes. Downstream consumers
|
|
135
|
+
that switch on `SinkType` should pick these up automatically; trust /
|
|
136
|
+
quality / health scoring categories are unaffected.
|
|
137
|
+
|
|
138
|
+
Full test suite: **766/766 passing** (3 skipped), no regressions.
|
|
139
|
+
|
|
8
140
|
## [2.9.0] - 2026-06-16
|
|
9
141
|
|
|
10
142
|
### Added — windowed source/sink batch-verification (cognium-ai#86)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "circle-ir-ai",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.1",
|
|
4
4
|
"description": "LLM-enhanced SAST analysis built on circle-ir",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"dependencies": {
|
|
95
95
|
"@ax-llm/ax": "^20.0.0",
|
|
96
96
|
"@mastra/core": "^1.18.0",
|
|
97
|
-
"circle-ir": "3.
|
|
97
|
+
"circle-ir": "3.57.0",
|
|
98
98
|
"minimatch": "^10.2.5",
|
|
99
99
|
"p-queue": "^9.1.0"
|
|
100
100
|
},
|