Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions zapier/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions zapier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"dependencies": {
"agentql-js-common": "^0.0.1",
"zapier-platform-core": "^17",
"lodash": ">=4.17.23"
"lodash": ">=4.18.0"
},
"devDependencies": {
"jest": "^29.6.0"
},
"overrides": {
"lodash": ">=4.17.23",
"lodash": ">=4.18.0",
Comment on lines +12 to +18

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Declared lodash constraints in zapier/package.json:"
python - <<'PY'
import json
p = json.load(open("zapier/package.json"))
print("dependencies.lodash =", p.get("dependencies", {}).get("lodash"))
print("overrides.lodash    =", p.get("overrides", {}).get("lodash"))
PY

echo
echo "Resolved lodash versions in zapier/package-lock.json (if present):"
if [ -f zapier/package-lock.json ]; then
  python - <<'PY'
import json
from collections import Counter

j = json.load(open("zapier/package-lock.json"))
versions = Counter()

# npm lockfile v2/v3 ("packages" map)
for pkg_path, meta in j.get("packages", {}).items():
    if not isinstance(meta, dict):
        continue
    if pkg_path.endswith("node_modules/lodash") or meta.get("name") == "lodash":
        v = meta.get("version")
        if v:
            versions[v] += 1

# fallback for older lockfiles ("dependencies" tree)
def walk(dep_map):
    if not isinstance(dep_map, dict):
        return
    for name, node in dep_map.items():
        if not isinstance(node, dict):
            continue
        if name == "lodash" and "version" in node:
            versions[node["version"]] += 1
        walk(node.get("dependencies", {}))

walk(j.get("dependencies", {}))

if versions:
    for v, c in sorted(versions.items()):
        print(f"{v}\t{c}")
else:
    print("No lodash entries found.")
PY
else
  echo "zapier/package-lock.json not found."
fi

Repository: tinyfish-io/agentql-integrations

Length of output: 266


Pin lodash to 4.18.1 instead of using open-ended >=4.18.0.

While package-lock.json currently resolves to 4.18.1, the manifest-level constraint >=4.18.0 is non-deterministic and obscures the security remediation intent. For CVE-2026-4800, pinning the exact version makes the fix auditable and prevents drift.

Proposed fix
   "dependencies": {
     "agentql-js-common": "^0.0.1",
     "zapier-platform-core": "^17",
-    "lodash": ">=4.18.0"
+    "lodash": "4.18.1"
   },
@@
   "overrides": {
-    "lodash": ">=4.18.0",
+    "lodash": "4.18.1",
     "minimatch": "^3.1.3",
     "picomatch": "^2.3.2"
   },
πŸ“ Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"lodash": ">=4.18.0"
},
"devDependencies": {
"jest": "^29.6.0"
},
"overrides": {
"lodash": ">=4.17.23",
"lodash": ">=4.18.0",
"lodash": "4.18.1"
},
"devDependencies": {
"jest": "^29.6.0"
},
"overrides": {
"lodash": "4.18.1",
πŸ€– Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@zapier/package.json` around lines 12 - 18, Update the manifest-level lodash
version constraint to a fixed, auditable release instead of an open range:
replace the "lodash" entries currently set to ">=4.18.0" in both the
dependencies block and the "overrides" block with the exact version "4.18.1"
(i.e., update the "lodash" value in package.json for both places), then
regenerate the lockfile (npm install / npm ci) so package-lock.json reflects the
pinned version.

"minimatch": "^3.1.3",
"picomatch": "^2.3.2"
},
Expand Down
Loading