davsclaus opened a new pull request, #30551: URL: https://github.com/apache/camel/pull/30551
_Claude Code on behalf of Claus Ibsen_ [CAMEL-27328](https://issues.apache.org/jira/browse/CAMEL-27328): the CVE Audit screen of camel-jbang listed the vulnerabilities of the classpath, but did not say well what to do about them. It now does: - **FIX**: the version that fixes each JAR, from the OSV affected ranges of its own package: the end of the range its version is in, else the lowest fixed version above it. Before, *Fixed in* mixed every fixed version of every package and line of the record. - **Apache Camel advisories**: the advisories that ship with the catalog are checked for the Camel JARs, merged with the OSV record of the same CVE, with the Camel release to upgrade to and the mitigation. Checked even when OSV.dev cannot be reached. - **VIA**: the dependency chain from the dependency of the project (`camel-kafka > kafka-clients`), from the POMs embedded in the classpath JARs, or the POM beside a JAR built without Maven (kafka-clients embeds none). Before it was one level only, and counted `dependencyManagement` and plugin dependencies. - **SCORE**: the CVSS 3.x base score; the CVSS 3 vector is preferred over a CVSS 4 one. - **USED**: `yes`/`no` whether the routes have an endpoint of the Camel component nearest to the JAR in its chain; empty when no component brings it in. - **`g`** groups the table by artifact, with the version that fixes all its CVEs (what to upgrade); **`/`** filters. - **Shift+F8** gives the AI the change that fixes each JAR (the version to declare with `camel.jbang.dependencies` or `//DEPS`, or the Camel release to upgrade to), also for an artifact. - A failed OSV.dev query is shown, instead of "No vulnerabilities found". Shared with the MCP server: the advisory version parsing moves from `AdvisoryService` to `SecurityAdvisoryHelper` in camel-jbang-run, which adds `upgradeTo` (the fixed release of the same line, 4.18.1 -> 4.18.3). `camel_security_advisories` and `camel_dependency_check` return it per advisory, and the security recommendation names the one Camel release that fixes all findings. Tested with unit tests (CVSS scores against NVD values, OSV ranges, chains from real JAR layouts, advisories, the views, the filter, the prompts), and once against live OSV.dev data and real JARs (camel-kafka, kafka-clients 2.8.1, snappy-java, jackson-databind, snakeyaml) through the scan steps and the drawn tab. The example to try it is apache/camel-jbang-examples#143 (`security/cve-audit`). Docs: the tab's help page, the TUI observe page and the MCP page. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
