Skip to content

Fix vulnerability_lookup defaults for unset MISP settings - #921

Merged
adulau merged 1 commit into
mainfrom
fix/vulnerability-lookup-null-settings-20261013
Oct 13, 2026
Merged

adulau merged 1 commit into
mainfrom
fix/vulnerability-lookup-null-settings-20261013

Conversation

@adulau

@adulau adulau commented Oct 13, 2026

Copy link
Copy Markdown
Member

MISP sends every advertised module setting, using null for unset values. For example, config={timeout: "80", max_related: null, with_linked: null, ...} currently evaluates int(None) and returns a validation error before making any API request. The module server returns that error as HTTP 200, explaining the observed 1.29 ms response with no enrichment.

Treat null and blank settings as unset so numeric, boolean and CPE options use their documented defaults. Preserve explicit false/zero values and retain validation of invalid numeric settings. Document that the top-level request timeout limits total module execution independently of the per-API config.timeout; MISP sends the former from Plugin.Enrichment_timeout (or the hover setting).

Validation: reproduced the original configuration with zero HTTP calls, then confirmed the exact logged payload reaches the lookup after the fix. All 66 focused tests pass, including null/blank defaults and explicit false/zero cases. Changed Python modules pass flake8 and git diff --check. Confirmed CVE-2026-87902 exists in the live CIRCL API.

Follow-up to the merged #920.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T05:31:54.031794Z 50d5c0a PR opened
🔒 Security Review ✅ Completed 2026-10-13T05:33:13.814425Z 50d5c0a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@adulau
adulau merged commit 37938fc into main Oct 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant