This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch fix/security-page-filters in repository https://gitbox.apache.org/repos/asf/camel-website.git
commit 4d4558df90c874f3e759e917a7a93bc8ba106c41 Author: Claus Ibsen <[email protected]> AuthorDate: Sun Nov 29 13:40:03 2026 +0100 Fix #1877: filterable security advisories and security fixes on release notes The /security/ page listed all 137 advisories in one flat table with the affected and fixed versions only as free text, so finding the advisories that apply to a given release meant reading every row. - data/security-advisories.yaml holds the structured data of each advisory: project, components, affected version ranges and fixed versions. It is a separate file because each CVE-*.md is signed byte for byte as CVE-*.txt.asc, so adding front matter to a published advisory would make it differ from its signed text. A new advisory may carry the same fields in its front matter before it is signed; those take precedence. - scripts/security-advisory-data.js parses the free text into ranges and adds entries for new advisories (--check fails when one is missing). The initial migration parsed every advisory but one: CVE-2026-47323 lists the empty range "from 4.19.0 before 4.19.0", which is dropped. Components not named as a summary prefix and the CVE-2018-8041 fixed version (2.21.2, per its mitigation; the front matter says 2.21.1) were set by hand. - /security/ gets filters for project, version, component, severity and free text, kept in the query string. The version filter evaluates the ranges and says when the version's line no longer receives fixes. Each year is a <details> section; only the newest year with advisories starts open. - The advisories section names the supported Camel releases (computed from the release notes' kind/eol) and links the batch announcement posts. - Release notes list the advisories fixed in that release, matched on the release category and the fixed versions. - test/security-advisories-test.js checks the data against the advisory pages and covers the parser and the version comparison. The advisory pages, their .txt.asc files and every other page build byte-identical; only /security/ and the 60 release notes with fixes change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y4dDj46SB6GniXf8mX2U6 --- .../{site-30351b85a4.css => site-4e04b9eb12.css} | 2 +- antora-ui-camel/public/_/data/rev-manifest.json | 2 +- antora-ui-camel/public/_/helpers/asset.js | 2 +- antora-ui-camel/public/_/partials/head-styles.hbs | 2 +- antora-ui-camel/public/_/rev-manifest | 2 +- antora-ui-camel/src/css/release.css | 10 + antora-ui-camel/src/css/security.css | 190 +++- assets/js/security-advisories.js | 149 +++ content/security/_index.md | 2 + data/security-advisories.yaml | 1038 ++++++++++++++++++++ layouts/partials/security/advisory-data.html | 21 + layouts/partials/security/fixed-in-release.html | 16 + layouts/partials/security/fixes-by-release.html | 17 + layouts/partials/security/supported-releases.html | 24 + layouts/release-note/single.html | 2 + layouts/security/list.html | 158 ++- scripts/security-advisory-data.js | 231 +++++ test/security-advisories-test.js | 86 ++ 18 files changed, 1887 insertions(+), 67 deletions(-) diff --git a/antora-ui-camel/public/_/css/site-30351b85a4.css b/antora-ui-camel/public/_/css/site-4e04b9eb12.css similarity index 77% rename from antora-ui-camel/public/_/css/site-30351b85a4.css rename to antora-ui-camel/public/_/css/site-4e04b9eb12.css index 21fa2d89..8f5df18e 100644 --- a/antora-ui-camel/public/_/css/site-30351b85a4.css +++ b/antora-ui-camel/public/_/css/site-4e04b9eb12.css @@ -20,4 +20,4 @@ .line and .cl (line wrappers), and .err (a lexer hiccup is not worth a color). .go, generic command output, is content the reader needs rather than chrome, so it stays at the base color too. */}@layer content{@media screen and (width >= 1025px){.doc{font-size:.88889rem;margin:0 2rem;max-width:none;min-width:0}}.doc h1,.doc h2,.doc h3,.doc h4,.doc h5,.doc h6{color:#211c17;font-weight:700;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none;line-height:1.3;margin:1rem 0 0}.doc>h1.page,.static>h1:first-child{font-size:2.33333rem;font-weight:800;letter-spacing:-.03em;line-height:1.05;margin:.55556rem 0 0}.doc>h1.page img{width:2r [...] -/*! Asciidoctor Tabs | Copyright (c) 2018-present Dan Allen | MIT License */.tablist>ul li:focus-visible{outline:none}.tablist.ulist,.tablist.ulist>ul li{margin:0}.tablist.ulist>ul li+li{margin-left:.25em}.tabs.is-loading .tablist li:not(:first-child),.tabs:not(.is-loading) .tablist li:not(.is-selected){background-color:#f5f5f5}.tabs.is-loading .tablist li:first-child::after,.tabs:not(.is-loading) .tablist li.is-selected::after{background-color:inherit;content:"";display:block;height:3px [...] \ No newline at end of file +/*! Asciidoctor Tabs | Copyright (c) 2018-present Dan Allen | MIT License */.tablist>ul li:focus-visible{outline:none}.tablist.ulist,.tablist.ulist>ul li{margin:0}.tablist.ulist>ul li+li{margin-left:.25em}.tabs.is-loading .tablist li:not(:first-child),.tabs:not(.is-loading) .tablist li:not(.is-selected){background-color:#f5f5f5}.tabs.is-loading .tablist li:first-child::after,.tabs:not(.is-loading) .tablist li.is-selected::after{background-color:inherit;content:"";display:block;height:3px [...] \ No newline at end of file diff --git a/antora-ui-camel/public/_/data/rev-manifest.json b/antora-ui-camel/public/_/data/rev-manifest.json index a39150fe..7b6b43cd 100644 --- a/antora-ui-camel/public/_/data/rev-manifest.json +++ b/antora-ui-camel/public/_/data/rev-manifest.json @@ -1,5 +1,5 @@ { - "css/site.css": "css/site-30351b85a4.css", + "css/site.css": "css/site-4e04b9eb12.css", "css/vendor/docsearch.css": "css/vendor/docsearch-5db8a73adb.css", "img/algolia.svg": "img/algolia-f4ab98e0de.svg", "img/apache-kafka.svg": "img/apache-kafka-88809b7472.svg", diff --git a/antora-ui-camel/public/_/helpers/asset.js b/antora-ui-camel/public/_/helpers/asset.js index 2dca7242..b912729a 100644 --- a/antora-ui-camel/public/_/helpers/asset.js +++ b/antora-ui-camel/public/_/helpers/asset.js @@ -1,7 +1,7 @@ 'use strict' const manifest = { - "css/site.css": "css/site-30351b85a4.css", + "css/site.css": "css/site-4e04b9eb12.css", "css/vendor/docsearch.css": "css/vendor/docsearch-5db8a73adb.css", "img/algolia.svg": "img/algolia-f4ab98e0de.svg", "img/apache-kafka.svg": "img/apache-kafka-88809b7472.svg", diff --git a/antora-ui-camel/public/_/partials/head-styles.hbs b/antora-ui-camel/public/_/partials/head-styles.hbs index 59ae8315..5ab89eba 100644 --- a/antora-ui-camel/public/_/partials/head-styles.hbs +++ b/antora-ui-camel/public/_/partials/head-styles.hbs @@ -1,5 +1,5 @@ <link rel="stylesheet" href="{{uiRootPath}}/css/vendor/docsearch-5db8a73adb.css"> - <link rel="stylesheet" href="{{uiRootPath}}/css/site-30351b85a4.css"> + <link rel="stylesheet" href="{{uiRootPath}}/css/site-4e04b9eb12.css"> {{!-- NOTE the asciinema partials are injected into the UI catalog by @springio/antora-extensions at Antora build time, so they only exist during a site build. Guarding on the page attribute the extension sets keeps the assets off pages with no cast, diff --git a/antora-ui-camel/public/_/rev-manifest b/antora-ui-camel/public/_/rev-manifest index a39150fe..7b6b43cd 100644 --- a/antora-ui-camel/public/_/rev-manifest +++ b/antora-ui-camel/public/_/rev-manifest @@ -1,5 +1,5 @@ { - "css/site.css": "css/site-30351b85a4.css", + "css/site.css": "css/site-4e04b9eb12.css", "css/vendor/docsearch.css": "css/vendor/docsearch-5db8a73adb.css", "img/algolia.svg": "img/algolia-f4ab98e0de.svg", "img/apache-kafka.svg": "img/apache-kafka-88809b7472.svg", diff --git a/antora-ui-camel/src/css/release.css b/antora-ui-camel/src/css/release.css index 1e390b64..efb3fddf 100644 --- a/antora-ui-camel/src/css/release.css +++ b/antora-ui-camel/src/css/release.css @@ -359,6 +359,16 @@ a.advisory-facts-cta { width: 25rem; } +.release-security-fixes li { + margin-top: calc(6 / var(--rem-base) * 1rem); + line-height: 1.6; +} + +.release-severity { + font-size: calc(11.5 / var(--rem-base) * 1rem); + padding: calc(1 / var(--rem-base) * 1rem) calc(8 / var(--rem-base) * 1rem); +} + /* responsive */ @media screen and (width <= 1024px) { diff --git a/antora-ui-camel/src/css/security.css b/antora-ui-camel/src/css/security.css index 8667a8dd..9b48f40a 100644 --- a/antora-ui-camel/src/css/security.css +++ b/antora-ui-camel/src/css/security.css @@ -141,16 +141,6 @@ padding-right: 0; } -.security-advisories tbody th { - text-align: left; - padding: calc(26 / var(--rem-base) * 1rem) 0 calc(8 / var(--rem-base) * 1rem); - font-family: var(--display-font-family); - font-weight: 800; - font-size: calc(22 / var(--rem-base) * 1rem); - letter-spacing: -0.02em; - color: var(--color-ink); -} - .security-advisories .security-row { border-top: 1px solid var(--color-line-soft); } @@ -191,14 +181,186 @@ overflow-x: auto; } -.security td:only-child { - text-align: center; -} - .security td:first-child { white-space: nowrap; } +/* advisories context, filters and per-year sections */ + +.security-context { + max-width: calc(820 / var(--rem-base) * 1rem); + font-size: calc(15 / var(--rem-base) * 1rem); + line-height: 1.6; + color: var(--color-ink-soft); +} + +.security-context p { + margin: calc(10 / var(--rem-base) * 1rem) 0 0; +} + +.security-context a { + color: var(--link-font-color); +} + +.security-context a:hover { + color: var(--link_hover-font-color); +} + +.security-filters { + display: flex; + flex-wrap: wrap; + align-items: flex-end; + gap: calc(12 / var(--rem-base) * 1rem) calc(16 / var(--rem-base) * 1rem); + margin-top: calc(24 / var(--rem-base) * 1rem); + padding: calc(18 / var(--rem-base) * 1rem) calc(20 / var(--rem-base) * 1rem); + background: var(--panel-background); + border: 1px solid var(--panel-border-color); + border-radius: 12px; /* radius exemption: raw px */ +} + +.security-filters[hidden] { + display: none; +} + +.security-filter { + display: flex; + flex-direction: column; + gap: calc(4 / var(--rem-base) * 1rem); + flex: 1 1 calc(150 / var(--rem-base) * 1rem); + min-width: 0; +} + +.security-filter--wide { + flex-basis: calc(220 / var(--rem-base) * 1rem); +} + +.security-filter-label { + font-family: var(--monospace-font-family); + font-size: calc(11.5 / var(--rem-base) * 1rem); + font-weight: 600; + color: var(--color-ink-muted); + letter-spacing: 0.06em; + text-transform: uppercase; +} + +.security-filter input, +.security-filter select, +.security-filter-reset { + font: inherit; + font-size: calc(14 / var(--rem-base) * 1rem); + color: var(--color-ink); + background: var(--color-white); + border: 1px solid var(--color-line-hover); + border-radius: 8px; /* radius exemption: raw px */ + box-sizing: border-box; + height: calc(38 / var(--rem-base) * 1rem); + padding: 0 calc(10 / var(--rem-base) * 1rem); +} + +.security-filter input[aria-invalid="true"] { + border-color: var(--color-orange-deep); +} + +.security-filter input:focus-visible, +.security-filter select:focus-visible, +.security-filter-reset:focus-visible { + outline: 2px solid var(--color-orange-deep); + outline-offset: 1px; +} + +.security-filter-reset { + background: transparent; + color: var(--color-ink-2); +} + +.security-filter-reset:hover { + border-color: var(--color-ink-muted); +} + +.security-filter-hint { + flex-basis: 100%; + margin: 0; + font-size: calc(13 / var(--rem-base) * 1rem); + color: var(--color-ink-muted); +} + +.security-filter-status { + margin: calc(14 / var(--rem-base) * 1rem) 0 0; + font-size: calc(15 / var(--rem-base) * 1rem); + line-height: 1.6; + color: var(--color-ink-2); +} + +.security-filter-status:empty { + display: none; +} + +.security-year { + border-bottom: 1px solid var(--color-line); +} + +.security-year[hidden] { + display: none; +} + +.security-year > summary { + display: flex; + align-items: baseline; + gap: calc(14 / var(--rem-base) * 1rem); + padding: calc(22 / var(--rem-base) * 1rem) 0 calc(10 / var(--rem-base) * 1rem); + cursor: pointer; + list-style: none; +} + +.security-year > summary::-webkit-details-marker { + display: none; +} + +.security-year > summary::before { + content: "\25B8"; + color: var(--color-ink-muted); + transition: transform 0.15s; +} + +.security-year[open] > summary::before { + transform: rotate(90deg); +} + +.security-year > summary:focus-visible { + outline: 2px solid var(--color-orange-deep); + outline-offset: 2px; +} + +.security-year-title { + margin: 0; + font-family: var(--display-font-family); + font-weight: 800; + font-size: calc(22 / var(--rem-base) * 1rem); + letter-spacing: -0.02em; + color: var(--color-ink); +} + +.security-year-count { + font-family: var(--monospace-font-family); + font-size: calc(12.5 / var(--rem-base) * 1rem); + color: var(--color-ink-muted); +} + +.security-year .security-advisories { + margin-bottom: calc(18 / var(--rem-base) * 1rem); +} + +.security-project { + display: block; + margin-top: calc(2 / var(--rem-base) * 1rem); + font-size: calc(11.5 / var(--rem-base) * 1rem); + color: var(--color-ink-muted); +} + +.security-row[hidden] { + display: none; +} + /* responsive */ @media screen and (width <= 1024px) { diff --git a/assets/js/security-advisories.js b/assets/js/security-advisories.js new file mode 100644 index 00000000..67ab810e --- /dev/null +++ b/assets/js/security-advisories.js @@ -0,0 +1,149 @@ +// Filters the advisories on /security/ by project, version, component, +// severity and free text. Each row carries its structured data (see +// data/security-advisories.yaml) in data-* attributes; the filter values are +// mirrored in the query string so a filtered view can be shared as a link. +;(function () { + 'use strict' + + var form = document.getElementById('security-filters') + if (!form) return + var fields = {} + var status = document.getElementById('security-filter-status') + var years = Array.prototype.slice.call(document.querySelectorAll('.security-year')) + var rows = Array.prototype.slice.call(document.querySelectorAll('.security-row')) + var supported = JSON.parse(form.getAttribute('data-supported') || '[]') + var initiallyOpen = years.map(function (d) { return d.open }) + var VERSION = /^\d+\.\d+\.\d+(-[A-Za-z0-9.]+)?$/ + var FIELDS = ['project', 'version', 'component', 'severity', 'q'] + FIELDS.forEach(function (name) { fields[name] = form.querySelector('[name="' + name + '"]') }) + + rows.forEach(function (row) { + row._affected = JSON.parse(row.getAttribute('data-affected') || '[]') + row._components = (row.getAttribute('data-components') || '').split(' ').filter(Boolean) + row._text = row.textContent.toLowerCase().replace(/\s+/g, ' ') + }) + + function parse (version) { + var parts = version.split('-') + return { nums: parts[0].split('.').map(Number), qualifier: parts.slice(1).join('-') } + } + + // Numeric order; 4.0.0-M1 sorts before 4.0.0 (same rules as + // scripts/security-advisory-data.js). + function compare (a, b) { + var va = parse(a) + var vb = parse(b) + for (var i = 0; i < Math.max(va.nums.length, vb.nums.length); i++) { + var d = (va.nums[i] || 0) - (vb.nums[i] || 0) + if (d !== 0) return d < 0 ? -1 : 1 + } + if (va.qualifier === vb.qualifier) return 0 + if (!va.qualifier) return 1 + if (!vb.qualifier) return -1 + return va.qualifier < vb.qualifier ? -1 : 1 + } + + function inRange (version, range) { + if (range.from && compare(version, range.from) < 0) return false + if (range.before) return compare(version, range.before) < 0 + if (range.to) return compare(version, range.to) <= 0 + return true + } + + function values () { + var v = {} + FIELDS.forEach(function (name) { v[name] = fields[name].value.trim() }) + v.version = v.version.replace(/^v/i, '') + return v + } + + function projectName (id) { + var option = fields.project.querySelector('option[value="' + id + '"]') + return option ? option.textContent : id + } + + function lineOf (version) { + return version.replace(/^(\d+\.\d+)\..*$/, '$1') + '.x' + } + + function supportNote (version) { + if (!supported.length) return '' + var line = lineOf(version) + var current = supported.filter(function (r) { return r.line === line })[0] + if (current) { + return compare(version, current.version) < 0 + ? ' The newest ' + line + ' release is ' + current.version + '.' + : '' + } + var latest = supported[0] + if (compare(version, latest.version) > 0) return '' + return ' The ' + line + ' line no longer receives security fixes, and advisories published after it reached' + + ' end of life may not list it; upgrade to a supported release (' + + supported.map(function (r) { return r.version }).join(', ') + ').' + } + + function apply () { + var v = values() + var versionValid = !v.version || VERSION.test(v.version) + fields.version.setAttribute('aria-invalid', versionValid ? 'false' : 'true') + var project = v.project || (v.version ? 'camel' : '') + var component = v.component.toLowerCase() + var q = v.q.toLowerCase() + var active = FIELDS.some(function (name) { return v[name] }) + var shown = 0 + + rows.forEach(function (row) { + var ok = (!project || row.getAttribute('data-project') === project) && + (!v.severity || row.getAttribute('data-severity') === v.severity) && + (!component || row._components.some(function (c) { return c.indexOf(component) !== -1 })) && + (!q || row._text.indexOf(q) !== -1) && + (!v.version || !versionValid || row._affected.some(function (r) { return inRange(v.version, r) })) + row.hidden = !ok + if (ok) shown++ + }) + + years.forEach(function (details, i) { + var visible = details.querySelectorAll('.security-row:not([hidden])').length + var count = details.querySelector('.security-year-count') + var total = Number(count.getAttribute('data-total')) + if (active) { + details.hidden = visible === 0 + details.open = visible > 0 + count.textContent = visible + ' of ' + total + } else { + details.hidden = false + details.open = initiallyOpen[i] + count.textContent = total ? total + (total === 1 ? ' advisory' : ' advisories') : 'No issues reported' + } + }) + + if (!active) status.textContent = '' + else if (!versionValid) status.textContent = 'Enter a full version such as 4.18.4.' + else if (v.version) { + status.textContent = (shown === 0 + ? 'No published advisory lists ' + projectName(project) + ' ' + v.version + ' as affected' + : shown + (shown === 1 ? ' advisory lists ' : ' advisories list ') + projectName(project) + ' ' + v.version + ' as affected') + + (shown && (v.component || v.severity || v.q) ? ' (with the other filters applied).' : '.') + + (project === 'camel' ? supportNote(v.version) : '') + } else status.textContent = shown + (shown === 1 ? ' advisory matches.' : ' advisories match.') + + var params = new URLSearchParams() + FIELDS.forEach(function (name) { if (v[name]) params.set(name, v[name]) }) + var query = params.toString() + history.replaceState(null, '', location.pathname + (query ? '?' + query : '') + location.hash) + } + + var params = new URLSearchParams(location.search) + FIELDS.forEach(function (name) { + if (params.has(name)) fields[name].value = params.get(name) + }) + + form.addEventListener('input', apply) + form.addEventListener('change', apply) + form.querySelector('.security-filter-reset').addEventListener('click', function () { + FIELDS.forEach(function (name) { fields[name].value = '' }) + apply() + }) + form.hidden = false + if (FIELDS.some(function (name) { return params.has(name) })) apply() +})() diff --git a/content/security/_index.md b/content/security/_index.md index ba5d88fd..1dee12ae 100644 --- a/content/security/_index.md +++ b/content/security/_index.md @@ -21,6 +21,8 @@ policy_enforcement: Camel includes built-in Security Policy Enforcement that validates security-sensitive configuration during startup and can prevent insecure configurations from reaching production. See [Security Policy Enforcement](/manual/security-policy.html) for configuration details. +advisories_intro: | + Each advisory below states the affected and fixed versions as published, and links to its PGP-signed text. Use the filters to find the advisories that list your project and version as affected. A release line that had already reached end of life when an advisory was published may not appear in that advisory's ranges, so if you run an unsupported release, upgrade rather than rely on the filter. reporting: title: "Reporting new security problems with Apache Camel" body: | diff --git a/data/security-advisories.yaml b/data/security-advisories.yaml new file mode 100644 index 00000000..c3138842 --- /dev/null +++ b/data/security-advisories.yaml @@ -0,0 +1,1038 @@ +# Structured data for the security advisories in content/security, keyed by +# CVE id. It drives the filters on /security/ and the "Security fixes in this +# release" section of the release notes. The advisory pages themselves are +# signed (CVE-*.txt.asc), so this data is kept here instead of in their front +# matter. Run `node scripts/security-advisory-data.js` after adding an +# advisory, then review the new entry. +# +# project release category id from data/release-categories.yaml +# (camel, camel-k, camel-quarkus, ...), or karavan +# components artifact ids, e.g. camel-aws2-s3; empty when the issue is +# not tied to particular components +# affected_ranges {from: V, before: V} covers from <= v < before, +# {from: V, to: V} covers from <= v <= to; a missing from +# means every earlier version +# fixed_versions the releases that first contain the fix, one per line + +CVE-2026-103413: + project: karavan + components: [] + affected_ranges: + - {from: "4.0.0", before: "4.22.1"} + fixed_versions: ["4.22.1"] +CVE-2026-103412: + project: karavan + components: [] + affected_ranges: + - {from: "3.18.0", before: "4.22.1"} + fixed_versions: ["4.22.1"] +CVE-2026-101259: + project: camel + components: [camel-coap] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.2"} + fixed_versions: ["4.18.5", "4.22.2", "4.23.0"] +CVE-2026-95664: + project: camel + components: [camel-aws2-s3] + affected_ranges: + - {from: "4.8.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.2"} + fixed_versions: ["4.18.5", "4.22.2", "4.23.0"] +CVE-2026-95663: + project: camel + components: [camel-keycloak] + affected_ranges: + - {from: "4.16.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.2"} + fixed_versions: ["4.18.5", "4.22.2", "4.23.0"] +CVE-2026-95629: + project: camel + components: [camel-docling] + affected_ranges: + - {from: "4.15.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.2"} + fixed_versions: ["4.18.5", "4.22.2", "4.23.0"] +CVE-2026-95628: + project: camel + components: [camel-docling] + affected_ranges: + - {from: "4.15.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.2"} + fixed_versions: ["4.18.5", "4.22.2", "4.23.0"] +CVE-2026-94386: + project: camel + components: [camel-oauth] + affected_ranges: + - {from: "4.19.0", before: "4.22.2"} + fixed_versions: ["4.22.2", "4.23.0"] +CVE-2026-91858: + project: camel + components: [camel-fop] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-90885: + project: camel + components: [camel-saxon] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.2"} + fixed_versions: ["4.18.5", "4.22.2", "4.23.0"] +CVE-2026-88901: + project: camel + components: [camel-smooks] + affected_ranges: + - {from: "4.7.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-88900: + project: camel + components: [camel-jgroups] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-88789: + project: camel-quarkus + components: [camel-quarkus-support-xalan] + affected_ranges: + - {from: "3.2.0", before: "3.33.3"} + - {from: "3.34.0", before: "3.40.0"} + fixed_versions: ["3.33.3", "3.40.0"] +CVE-2026-85317: + project: camel + components: [camel-http] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85316: + project: camel + components: [camel-platform-http] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85315: + project: camel + components: [camel-grpc] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85314: + project: camel + components: [camel-mail] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85313: + project: camel + components: [camel-jetty] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85312: + project: camel + components: [camel-core] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85301: + project: camel + components: [camel-keycloak] + affected_ranges: + - {from: "4.15.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85300: + project: camel + components: [camel-pqc] + affected_ranges: + - {from: "4.12.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85296: + project: camel + components: [camel-as2] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85260: + project: camel + components: [camel-mllp] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85257: + project: camel + components: [camel-cxf] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85254: + project: camel + components: [camel-platform-http] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85251: + project: camel + components: [camel-http] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85250: + project: camel + components: [camel-xpath] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85249: + project: camel + components: [camel-tika] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85248: + project: camel + components: [camel-pqc] + affected_ranges: + - {from: "4.12.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85247: + project: camel + components: [camel-knative] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85246: + project: camel + components: [camel-mina] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85245: + project: camel + components: [camel-thrift] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-85243: + project: camel + components: [camel-crypto-pgp] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-84181: + project: camel + components: [camel-shiro] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-84180: + project: camel + components: [camel-knative] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-84178: + project: camel + components: [camel-oauth] + affected_ranges: + - {from: "4.11.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-84176: + project: camel + components: [camel-platform-http-vertx] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-83531: + project: camel + components: [camel-dynamic-router] + affected_ranges: + - {from: "4.4.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-80354: + project: camel-k + components: [] + affected_ranges: + - {from: "2.0.0", before: "2.9.3"} + - {from: "2.10.0", before: "2.10.2"} + fixed_versions: ["2.9.3", "2.10.2", "2.11.0"] +CVE-2026-80352: + project: camel-k + components: [] + affected_ranges: + - {from: "2.0.0", before: "2.9.3"} + - {from: "2.10.0", before: "2.10.2"} + fixed_versions: ["2.9.3", "2.10.2", "2.11.0"] +CVE-2026-80351: + project: camel-k + components: [] + affected_ranges: + - {from: "2.0.0", before: "2.9.3"} + - {from: "2.10.0", before: "2.10.2"} + fixed_versions: ["2.9.3", "2.10.2", "2.11.0"] +CVE-2026-80344: + project: camel + components: [camel-as2] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-80343: + project: camel + components: [camel-netty-http] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-80312: + project: camel + components: [camel-oauth] + affected_ranges: + - {from: "4.11.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-79986: + project: camel + components: [camel-azure-files] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-79985: + project: camel + components: [camel-smb] + affected_ranges: + - {from: "4.2.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-79984: + project: camel + components: [camel-mina-sftp] + affected_ranges: + - {from: "4.18.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-79983: + project: camel + components: [camel-ftp] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-78329: + project: camel + components: [camel-undertow] + affected_ranges: + - {from: "4.11.0", before: "4.14.9"} + - {from: "4.15.0", before: "4.18.4"} + - {from: "4.19.0", before: "4.22.0"} + fixed_versions: ["4.14.9", "4.18.4", "4.22.0"] +CVE-2026-78165: + project: camel + components: [camel-spring-redis] + affected_ranges: + - {from: "2.11.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-78164: + project: camel + components: [camel-http, camel-netty-http, camel-undertow, camel-vertx-http] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-78163: + project: camel + components: [camel-docling] + affected_ranges: + - {from: "4.15.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-78162: + project: camel + components: [camel-hazelcast] + affected_ranges: + - {from: "4.0.0", before: "4.18.5"} + - {from: "4.19.0", before: "4.22.1"} + fixed_versions: ["4.18.5", "4.22.1", "4.23.0"] +CVE-2026-71569: + project: camel + components: [camel-a2a] + affected_ranges: + - {from: "4.21.0", before: "4.22.2"} + fixed_versions: ["4.22.2", "4.23.0"] +CVE-2026-71300: + project: camel + components: [camel-atmosphere-websocket] + affected_ranges: + - {from: "4.0.0", before: "4.14.9"} + - {from: "4.15.0", before: "4.18.4"} + - {from: "4.19.0", before: "4.22.0"} + fixed_versions: ["4.14.9", "4.18.4", "4.22.0"] +CVE-2026-66908: + project: camel + components: [camel-platform-http-main] + affected_ranges: + - {from: "4.8.0", before: "4.22.0"} + fixed_versions: ["4.22.0"] +CVE-2026-66907: + project: camel + components: [camel-google-storage] + affected_ranges: + - {from: "4.0.0", before: "4.14.9"} + - {from: "4.15.0", before: "4.18.4"} + - {from: "4.19.0", before: "4.22.0"} + fixed_versions: ["4.14.9", "4.18.4", "4.22.0"] +CVE-2026-66906: + project: camel + components: [camel-azure-storage-blob] + affected_ranges: + - {from: "4.0.0", before: "4.14.9"} + - {from: "4.15.0", before: "4.18.4"} + - {from: "4.19.0", before: "4.22.0"} + fixed_versions: ["4.14.9", "4.18.4", "4.22.0"] +CVE-2026-63621: + project: camel + components: [camel-knative] + affected_ranges: + - {from: "3.15.0", before: "4.14.9"} + - {from: "4.15.0", before: "4.18.4"} + - {from: "4.19.0", before: "4.22.0"} + fixed_versions: ["4.14.9", "4.18.4", "4.22.0"] +CVE-2026-60093: + project: camel + components: [camel-azure-storage-datalake] + affected_ranges: + - {from: "4.0.0", before: "4.14.9"} + - {from: "4.15.0", before: "4.18.4"} + - {from: "4.19.0", before: "4.22.0"} + fixed_versions: ["4.14.9", "4.18.4", "4.22.0"] +CVE-2026-59230: + project: camel + components: [camel-mail] + affected_ranges: + - {from: "2.17.0", before: "4.14.9"} + - {from: "4.15.0", before: "4.18.4"} + - {from: "4.19.0", before: "4.22.0"} + fixed_versions: ["4.14.9", "4.18.4", "4.22.0"] +CVE-2026-56140: + project: camel + components: [camel-aws2-sns] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-56139: + project: camel + components: [camel-undertow] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-55994: + project: camel + components: [camel-iggy] + affected_ranges: + - {from: "4.17.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.18.3", "4.21.0"] +CVE-2026-55993: + project: camel + components: [camel-atmosphere-websocket] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-53913: + project: camel + components: [camel-keycloak] + affected_ranges: + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.18.3", "4.21.0"] +CVE-2026-49365: + project: camel + components: [camel-netty-http] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-49099: + project: camel + components: [camel-salesforce] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-49098: + project: camel + components: [camel-kafka] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-49097: + project: camel + components: [camel-irc] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-49086: + project: camel + components: [camel-dapr] + affected_ranges: + - {from: "4.12.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-49042: + project: camel + components: [camel-langchain4j-tools] + affected_ranges: + - {from: "4.8.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.18.3", "4.21.0"] +CVE-2026-48206: + project: camel + components: [camel-jira] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-48205: + project: camel + components: [camel-dns] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-48204: + project: camel + components: [camel-mongodb-gridfs] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-48203: + project: camel + components: [camel-solr] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-47323: + project: camel + components: [camel-cxf, camel-knative] + affected_ranges: + - {from: "3.18.0", before: "4.14.6"} + - {from: "4.15.0", before: "4.18.2"} + fixed_versions: ["4.14.6", "4.18.2", "4.19.0"] +CVE-2026-46726: + project: camel + components: [camel-vertx-websocket] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-46592: + project: camel + components: [camel-cxf] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-46591: + project: camel + components: [camel-neo4j] + affected_ranges: + - {from: "4.10.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-46590: + project: camel + components: [camel-pqc] + affected_ranges: + - {from: "4.18.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.18.3", "4.21.0"] +CVE-2026-46588: + project: camel + components: [camel-couchdb] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-46587: + project: camel + components: [camel-couchbase] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-46585: + project: camel + components: [camel-lucene] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-46584: + project: camel + components: [camel-mail] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-46457: + project: camel + components: [camel-nats] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-46456: + project: camel + components: [camel-aws2-sqs] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-46455: + project: camel + components: [camel-keycloak] + affected_ranges: + - {from: "4.18.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.18.3", "4.21.0"] +CVE-2026-46454: + project: camel + components: [camel-cometd] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-46453: + project: camel + components: [camel-elasticsearch-rest-client] + affected_ranges: + - {from: "4.3.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-45760: + project: camel-k + components: [] + affected_ranges: + - {from: "2.0.0", before: "2.8.1"} + - {from: "2.9.0", before: "2.9.2"} + - {from: "2.10.0", before: "2.10.1"} + fixed_versions: ["2.8.1", "2.9.2", "2.10.1"] +CVE-2026-43867: + project: camel + components: [camel-pqc] + affected_ranges: + - {from: "4.18.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.18.3", "4.21.0"] +CVE-2026-43866: + project: camel + components: [camel-activemq, camel-amqp, camel-jms, camel-sjms, camel-sjms2] + affected_ranges: + - {from: "3.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-43865: + project: camel + components: [camel-hazelcast] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.21.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-42527: + project: camel + components: [camel-amqp, camel-cassandraql, camel-consul, camel-infinispan, camel-jms, camel-leveldb, camel-mina, camel-netty, camel-netty-http, camel-sjms, camel-sql, camel-vertx-http] + affected_ranges: + - {from: "4.14.0", to: "4.14.7"} + - {from: "4.18.0", to: "4.18.2"} + - {from: "4.20.0", to: "4.20.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.21.0"] +CVE-2026-40860: + project: camel + components: [camel-amqp, camel-jms, camel-sjms, camel-sjms2] + affected_ranges: + - {from: "3.0.0", before: "4.14.7"} + - {from: "4.15.0", before: "4.18.2"} + - {from: "4.19.0", before: "4.20.0"} + fixed_versions: ["4.14.7", "4.18.2", "4.20.0"] +CVE-2026-40859: + project: camel + components: [camel-vertx-http, camel-netty-http] + affected_ranges: + - {from: "4.0.0", before: "4.14.8"} + - {from: "4.15.0", before: "4.18.3"} + - {from: "4.19.0", before: "4.20.0"} + fixed_versions: ["4.14.8", "4.18.3", "4.20.0"] +CVE-2026-40858: + project: camel + components: [camel-infinispan] + affected_ranges: + - {from: "4.0.0", before: "4.14.7"} + - {from: "4.15.0", before: "4.18.2"} + - {from: "4.19.0", before: "4.20.0"} + fixed_versions: ["4.14.7", "4.18.2", "4.20.0"] +CVE-2026-40473: + project: camel + components: [camel-mina] + affected_ranges: + - {from: "3.0.0", before: "4.14.6"} + - {from: "4.15.0", before: "4.18.2"} + - {from: "4.19.0", before: "4.20.0"} + fixed_versions: ["4.14.6", "4.18.2", "4.20.0"] +CVE-2026-40453: + project: camel + components: [camel-coap, camel-google-pubsub, camel-jms, camel-sjms] + affected_ranges: + - {from: "3.0.0", before: "4.14.6"} + - {from: "4.15.0", before: "4.18.2"} + - {from: "4.19.0", before: "4.20.0"} + fixed_versions: ["4.14.6", "4.18.2", "4.20.0"] +CVE-2026-40048: + project: camel + components: [camel-pqc] + affected_ranges: + - {from: "4.19.0", before: "4.20.0"} + - {from: "4.18.0", before: "4.18.2"} + fixed_versions: ["4.18.2", "4.20.0"] +CVE-2026-40047: + project: camel + components: [camel-docling] + affected_ranges: + - {from: "4.15.0", before: "4.18.3"} + fixed_versions: ["4.18.3", "4.19.0"] +CVE-2026-40022: + project: camel + components: [camel-platform-http-main] + affected_ranges: + - {from: "4.14.1", before: "4.14.6"} + - {from: "4.15.0", before: "4.18.2"} + fixed_versions: ["4.14.6", "4.18.2", "4.20.0"] +CVE-2026-33454: + project: camel + components: [camel-mail] + affected_ranges: + - {from: "3.0.0", before: "4.14.6"} + - {from: "4.15.0", before: "4.18.1"} + fixed_versions: ["4.14.6", "4.18.1", "4.19.0"] +CVE-2026-33453: + project: camel + components: [camel-coap] + affected_ranges: + - {from: "4.14.0", before: "4.14.6"} + - {from: "4.15.0", before: "4.18.1"} + fixed_versions: ["4.14.6", "4.18.1", "4.19.0"] +CVE-2026-27172: + project: camel + components: [camel-consul] + affected_ranges: + - {from: "3.0.0", before: "4.14.6"} + - {from: "4.15.0", before: "4.18.1"} + fixed_versions: ["4.14.6", "4.18.1", "4.19.0"] +CVE-2026-25747: + project: camel + components: [camel-leveldb] + affected_ranges: + - {from: "3.0.0", before: "4.10.9"} + - {from: "4.11.0", before: "4.14.5"} + - {from: "4.15.0", before: "4.18.0"} + fixed_versions: ["4.10.9", "4.14.5", "4.18.0"] +CVE-2026-23552: + project: camel + components: [camel-keycloak] + affected_ranges: + - {from: "4.15.0", before: "4.18.0"} + fixed_versions: ["4.18.0"] +CVE-2025-66169: + project: camel + components: [camel-neo4j] + affected_ranges: + - {from: "4.10.0", before: "4.10.8"} + - {from: "4.14.0", before: "4.14.3"} + - {from: "4.15.0", to: "4.15.0"} + - {from: "4.16.0", to: "4.16.0"} + fixed_versions: ["4.10.8", "4.14.3", "4.17.0"] +CVE-2025-30177: + project: camel + components: [camel-undertow] + affected_ranges: + - {from: "4.10.0", before: "4.10.3"} + - {from: "4.8.0", before: "4.8.6"} + fixed_versions: ["4.8.6", "4.10.3"] +CVE-2025-29891: + project: camel + components: [camel-jetty, camel-netty-http, camel-platform-http, camel-servlet, camel-undertow] + affected_ranges: + - {from: "4.10.0", before: "4.10.2"} + - {from: "4.8.0", before: "4.8.5"} + - {from: "3.10.0", before: "3.22.4"} + fixed_versions: ["3.22.4", "4.8.5", "4.10.2"] +CVE-2025-27636: + project: camel + components: [camel-bean, camel-jetty, camel-netty-http, camel-platform-http, camel-servlet, camel-undertow] + affected_ranges: + - {from: "4.10.0", before: "4.10.2"} + - {from: "4.8.0", before: "4.8.5"} + - {from: "3.10.0", before: "3.22.4"} + fixed_versions: ["3.22.4", "4.8.5", "4.10.2"] +CVE-2024-23114: + project: camel + components: [camel-cassandraql] + affected_ranges: + - {from: "3.0.0", before: "3.21.4"} + - {from: "3.22.0", before: "3.22.1"} + - {from: "4.0.0", before: "4.0.4"} + - {from: "4.1.0", before: "4.4.0"} + fixed_versions: ["3.21.4", "3.22.1", "4.0.4", "4.4.0"] +CVE-2024-22371: + project: camel + components: [camel-core] + affected_ranges: + - {from: "3.0.0", before: "3.21.4"} + - {from: "3.22.0", before: "3.22.1"} + - {from: "4.0.0", before: "4.0.4"} + - {from: "4.1.0", before: "4.4.0"} + fixed_versions: ["3.21.4", "3.22.1", "4.0.4", "4.4.0"] +CVE-2024-22369: + project: camel + components: [camel-sql] + affected_ranges: + - {from: "3.0.0", before: "3.21.4"} + - {from: "3.22.0", before: "3.22.1"} + - {from: "4.0.0", before: "4.0.4"} + - {from: "4.1.0", before: "4.4.0"} + fixed_versions: ["3.21.4", "3.22.1", "4.0.4", "4.4.0"] +CVE-2023-34442: + project: camel + components: [camel-jira] + affected_ranges: + - {from: "3.0.0", to: "3.14.8"} + - {from: "3.18.0", to: "3.18.7"} + - {from: "3.20.0", to: "3.20.5"} + - {from: "4.0.0-M1", to: "4.0.0-M3"} + fixed_versions: ["3.14.9", "3.18.8", "3.20.6", "3.21.0", "4.0.0-RC1"] +CVE-2022-45046: + project: camel + components: [camel-ldap] + affected_ranges: + - {from: "3.0.0", to: "3.14.5"} + - {from: "3.15.0", to: "3.18.3"} + - {from: "3.19.0", to: "3.19.0"} + fixed_versions: ["3.14.6", "3.18.4"] +CVE-2020-11994: + project: camel + components: [] + affected_ranges: + - {from: "2.22.0", before: "2.23.0"} + - {from: "2.23.0", before: "2.24.0"} + - {from: "2.24.0", before: "2.25.0"} + - {from: "2.25.0", to: "2.25.0"} + - {from: "2.25.1", to: "2.25.1"} + - {from: "3.0.0", to: "3.3.0"} + fixed_versions: ["2.25.2", "3.4.0"] +CVE-2020-11973: + project: camel + components: [camel-netty] + affected_ranges: + - {from: "2.22.0", before: "2.23.0"} + - {from: "2.23.0", before: "2.24.0"} + - {from: "2.24.0", before: "2.25.0"} + - {from: "2.25.0", to: "2.25.0"} + - {from: "3.0.0", to: "3.1.0"} + fixed_versions: ["2.25.1", "3.2.0"] +CVE-2020-11972: + project: camel + components: [camel-rabbitmq] + affected_ranges: + - {from: "2.22.0", before: "2.23.0"} + - {from: "2.23.0", before: "2.24.0"} + - {from: "2.24.0", before: "2.25.0"} + - {from: "2.25.0", to: "2.25.0"} + - {from: "3.0.0", to: "3.1.0"} + fixed_versions: ["2.25.1", "3.2.0"] +CVE-2020-11971: + project: camel + components: [camel-management] + affected_ranges: + - {from: "2.22.0", before: "2.23.0"} + - {from: "2.23.0", before: "2.24.0"} + - {from: "2.24.0", before: "2.25.0"} + - {from: "2.25.0", before: "2.26.0"} + - {from: "3.0.0", to: "3.1.0"} + fixed_versions: ["3.2.0"] +CVE-2019-0194: + project: camel + components: [camel-core] + affected_ranges: + - {from: "2.21.0", to: "2.21.3"} + - {from: "2.22.0", to: "2.22.2"} + - {from: "2.23.0", to: "2.23.0"} + fixed_versions: ["2.21.5", "2.22.3", "2.23.1"] +CVE-2019-0188: + project: camel + components: [camel-xmljson] + affected_ranges: + - {before: "2.24.0"} + fixed_versions: ["2.24.0"] +CVE-2018-8041: + project: camel + components: [camel-mail] + affected_ranges: + - {from: "2.20.0", to: "2.20.3"} + - {from: "2.21.0", to: "2.21.1"} + - {from: "2.22.0", to: "2.22.0"} + fixed_versions: ["2.20.4", "2.21.2", "2.22.1"] +CVE-2018-8027: + project: camel + components: [camel-core] + affected_ranges: + - {from: "2.20.0", to: "2.20.3"} + - {from: "2.21.0", to: "2.21.0"} + fixed_versions: ["2.20.4", "2.21.1"] +CVE-2017-12634: + project: camel + components: [camel-castor] + affected_ranges: + - {from: "2.19.0", to: "2.19.3"} + - {from: "2.20.0", to: "2.20.0"} + fixed_versions: ["2.19.4", "2.20.1"] +CVE-2017-12633: + project: camel + components: [camel-hessian] + affected_ranges: + - {from: "2.19.0", to: "2.19.3"} + - {from: "2.20.0", to: "2.20.0"} + fixed_versions: ["2.19.4", "2.20.1"] +CVE-2017-5643: + project: camel + components: [camel-core] + affected_ranges: + - {from: "2.17.0", to: "2.17.5"} + - {from: "2.18.0", to: "2.18.2"} + fixed_versions: ["2.17.6", "2.18.3"] +CVE-2017-3159: + project: camel + components: [camel-snakeyaml] + affected_ranges: + - {from: "2.17.0", to: "2.17.4"} + - {from: "2.18.0", to: "2.18.1"} + fixed_versions: ["2.17.5", "2.18.2"] +CVE-2016-8749: + project: camel + components: [camel-jackson, camel-jacksonxml] + affected_ranges: + - {from: "2.16.0", to: "2.16.4"} + - {from: "2.17.0", to: "2.17.4"} + - {from: "2.18.0", to: "2.18.1"} + fixed_versions: ["2.16.5", "2.17.5", "2.18.2"] +CVE-2015-5348: + project: camel + components: [camel-jetty, camel-servlet] + affected_ranges: + - {from: "2.15.0", to: "2.15.4"} + - {from: "2.16.0", to: "2.16.0"} + fixed_versions: ["2.15.5", "2.16.1"] +CVE-2015-5344: + project: camel + components: [camel-xstream] + affected_ranges: + - {from: "2.15.0", to: "2.15.4"} + - {from: "2.16.0", to: "2.16.0"} + fixed_versions: ["2.15.5", "2.16.1"] +CVE-2015-0264: + project: camel + components: [camel-core] + affected_ranges: + - {from: "2.13.0", to: "2.13.3"} + - {from: "2.14.0", to: "2.14.1"} + fixed_versions: ["2.13.4", "2.14.2", "2.15.0"] +CVE-2015-0263: + project: camel + components: [camel-core] + affected_ranges: + - {from: "2.13.0", to: "2.13.3"} + - {from: "2.14.0", to: "2.14.1"} + fixed_versions: ["2.13.4", "2.14.2", "2.15.0"] +CVE-2014-0003: + project: camel + components: [camel-core] + affected_ranges: + - {from: "2.11.0", to: "2.11.3"} + - {from: "2.12.0", to: "2.12.2"} + fixed_versions: ["2.11.4", "2.12.3", "2.13.0"] +CVE-2014-0002: + project: camel + components: [camel-core] + affected_ranges: + - {from: "2.11.0", to: "2.11.3"} + - {from: "2.12.0", to: "2.12.2"} + fixed_versions: ["2.11.4", "2.12.3", "2.13.0"] +CVE-2013-4330: + project: camel + components: [camel-core, camel-ftp] + affected_ranges: + - {from: "2.9.0", to: "2.9.7"} + - {from: "2.10.0", to: "2.10.6"} + - {from: "2.11.0", to: "2.11.1"} + - {from: "2.12.0", to: "2.12.0"} + fixed_versions: ["2.9.8", "2.10.7", "2.11.2", "2.12.1"] diff --git a/layouts/partials/security/advisory-data.html b/layouts/partials/security/advisory-data.html new file mode 100644 index 00000000..523e90f0 --- /dev/null +++ b/layouts/partials/security/advisory-data.html @@ -0,0 +1,21 @@ +{{/* + Returns the structured data of a security advisory page: project, + components, affected_ranges and fixed_versions. Front matter fields win, so + an advisory can carry them before it is signed; otherwise they come from + data/security-advisories.yaml (see scripts/security-advisory-data.js). + + Context: an advisory page (type security-advisory) +*/}} +{{- $data := dict -}} +{{- with index site.Data "security-advisories" -}} + {{- with index . $.Params.cve -}} + {{- $data = . -}} + {{- end -}} +{{- end -}} +{{- $p := .Params -}} +{{- return dict + "project" ($p.project | default $data.project | default "camel") + "components" ($p.components | default $data.components | default slice) + "affected_ranges" ($p.affected_ranges | default $data.affected_ranges | default slice) + "fixed_versions" ($p.fixed_versions | default $data.fixed_versions | default slice) +-}} diff --git a/layouts/partials/security/fixed-in-release.html b/layouts/partials/security/fixed-in-release.html new file mode 100644 index 00000000..20a19ab0 --- /dev/null +++ b/layouts/partials/security/fixed-in-release.html @@ -0,0 +1,16 @@ +{{/* + Lists the security advisories fixed in a release: those whose project is the + release's category and whose fixed_versions contain its version. + + Context: a release note page (type release-note) +*/ -}} +{{- $index := partialCached "security/fixes-by-release.html" "security-fixes-by-release" -}} +{{- with index $index (printf "%s %s" .Params.category .Params.version) }} +<h2 id="security_fixes"><a class="anchor" href="#security_fixes"></a>Security fixes in this release</h2> +<p>This release fixes the following {{ len . }} published {{ cond (eq (len .) 1) "vulnerability" "vulnerabilities" }}. See the <a href="{{ "security/" | relURL }}">security advisories</a> for all advisories.</p> +<ul class="release-security-fixes"> + {{ range . }} + <li><a href="{{ .RelPermalink }}">{{ .Params.cve }}</a> <span class="severity-chip release-severity severity-chip--{{ .Params.severity | lower }}">{{ .Params.severity | lower | title }}</span> {{ .Params.summary }}</li> + {{ end }} +</ul> +{{- end -}} diff --git a/layouts/partials/security/fixes-by-release.html b/layouts/partials/security/fixes-by-release.html new file mode 100644 index 00000000..37a74dbc --- /dev/null +++ b/layouts/partials/security/fixes-by-release.html @@ -0,0 +1,17 @@ +{{/* + Returns a dict keyed "<project> <version>" listing, newest first, the + advisory pages whose fixed_versions contain that version. Call it with + partialCached so it is computed once per build. +*/}} +{{- $index := newScratch -}} +{{- with site.GetPage "/security" -}} + {{- range .Pages.ByDate.Reverse -}} + {{- $page := . -}} + {{- $d := partial "security/advisory-data.html" . -}} + {{- range $d.fixed_versions -}} + {{- $key := printf "%s %s" $d.project . -}} + {{- $index.Add $key (slice $page) -}} + {{- end -}} + {{- end -}} +{{- end -}} +{{- return $index.Values -}} diff --git a/layouts/partials/security/supported-releases.html b/layouts/partials/security/supported-releases.html new file mode 100644 index 00000000..439ce844 --- /dev/null +++ b/layouts/partials/security/supported-releases.html @@ -0,0 +1,24 @@ +{{/* + Returns the Apache Camel releases that currently receive security fixes, + newest first: the latest release, then the newest patch of each LTS line + whose end-of-life date (release note front matter `eol`) has not passed. + Each entry is a dict of version, line (e.g. "4.22.x"), lts and eol. +*/}} +{{- $releases := where (where site.Pages "Section" "releases") ".Params.category" "camel" -}} +{{- $sorted := partial "releases/version_sort.html" $releases -}} +{{- $result := slice -}} +{{- $lines := slice -}} +{{- with index $sorted 0 -}} + {{- $line := printf "%s.x" (replaceRE `\.\d+$` "" .Params.version) -}} + {{- $lts := and (eq .Params.kind "lts") .Params.eol (gt (time .Params.eol).Unix now.Unix) -}} + {{- $result = $result | append (dict "version" .Params.version "line" $line "lts" $lts "eol" (cond $lts .Params.eol "")) -}} + {{- $lines = $lines | append $line -}} +{{- end -}} +{{- range where $sorted ".Params.kind" "lts" -}} + {{- $line := printf "%s.x" (replaceRE `\.\d+$` "" .Params.version) -}} + {{- if and (not (in $lines $line)) .Params.eol (gt (time .Params.eol).Unix now.Unix) -}} + {{- $result = $result | append (dict "version" .Params.version "line" $line "lts" true "eol" .Params.eol) -}} + {{- $lines = $lines | append $line -}} + {{- end -}} +{{- end -}} +{{- return $result -}} diff --git a/layouts/release-note/single.html b/layouts/release-note/single.html index 36819cbc..753d5f5b 100644 --- a/layouts/release-note/single.html +++ b/layouts/release-note/single.html @@ -5,6 +5,8 @@ <h2 id="whats_new"><a class="anchor" href="#whats_new"></a>New and Noteworthy</h2> {{ .Content }} + {{- partial "security/fixed-in-release.html" . }} + {{ with .Params.jdk }} <h2 id="jdk"><a class="anchor" href="#jdk"></a>Supported Java version</h2> This version supports Java {{ delimit . ", " " and " }}. diff --git a/layouts/security/list.html b/layouts/security/list.html index a265aaa8..7f1cc4af 100644 --- a/layouts/security/list.html +++ b/layouts/security/list.html @@ -35,58 +35,120 @@ </div> </div> - <h2 class="section-label">Security advisories</h2> - <div class="table-wrapper"> - <table class="security-advisories" aria-label="Security advisories by year"> - <thead> - <tr> - <th>Reference</th> - <th>Affected</th> - <th>Fixed</th> - <th>Severity</th> - <th>Description</th> - </tr> - </thead> - <tbody> - {{ $pages := .Pages.GroupByDate "2006" "desc" }} - {{ $earliest_year := (index (.Pages.GroupByDate "2006" "asc") 0).Key }} - {{ range $year := seq (now.Format "2006") $earliest_year }} - {{ $has_any := false }} - {{ range $pages }} - {{ if eq $year (int .Key) }} - {{ $has_any = true}} - {{ break }} - {{ end }} - {{ end }} - {{ if $has_any }} - {{ range $pages }} - {{ if eq $year (int .Key) }} + {{ $projects := dict "camel" "Apache Camel" "camel-k" "Camel K" "camel-quarkus" "Camel Quarkus" "karavan" "Karavan" }} + {{ $supported := partial "security/supported-releases.html" . }} + + <h2 class="section-label" id="advisories">Security advisories</h2> + <div class="security-context"> + {{ with .Params.advisories_intro }}<p>{{ . | markdownify }}</p>{{ end }} + <p> + Security fixes ship in the supported Apache Camel releases: + {{ range $i, $r := $supported -}} + {{ if $i }}, {{ end }}<strong>{{ $r.version }}</strong>{{ if $r.lts }} ({{ $r.line }} LTS, supported until {{ dateFormat "January 2006" (time $r.eol) }}){{ else }} (latest){{ end }} + {{- end }}. + See <a href="{{ "download/" | relURL }}">Download</a> for every supported release line, including the Camel subprojects. + </p> + {{ $posts := where (where site.RegularPages "Section" "blog") "File.Dir" "like" `camel-security-advisories-` }} + {{ with $posts }} + <p> + Batch announcements: + {{ range $i, $p := .ByDate.Reverse -}} + {{ if $i }}, {{ end }}<a href="{{ $p.RelPermalink }}">{{ $p.Title }}</a> + {{- end }}. + More in the <a href="{{ "categories/Security/" | relURL }}">Security</a> blog category. + </p> + {{ end }} + </div> + + {{/* the filters need JavaScript (assets/js/security-advisories.js), so they stay hidden without it */}} + <div class="security-filters" id="security-filters" role="search" aria-label="Filter security advisories" hidden + data-supported="{{ $supported | jsonify }}"> + <label class="security-filter"> + <span class="security-filter-label">Project</span> + <select name="project"> + <option value="">All projects</option> + {{ range $id, $name := $projects }}<option value="{{ $id }}">{{ $name }}</option>{{ end }} + </select> + </label> + <label class="security-filter"> + <span class="security-filter-label">Your version</span> + <input name="version" type="text" inputmode="decimal" autocomplete="off" spellcheck="false" placeholder="e.g. 4.18.4" aria-describedby="security-version-hint"> + </label> + <label class="security-filter"> + <span class="security-filter-label">Component</span> + <input name="component" type="text" list="security-components" autocomplete="off" spellcheck="false" placeholder="e.g. camel-kafka"> + </label> + <label class="security-filter"> + <span class="security-filter-label">Severity</span> + <select name="severity"> + <option value="">Any</option> + {{ range slice "critical" "high" "medium" "low" }}<option value="{{ . }}">{{ . | title }}</option>{{ end }} + </select> + </label> + <label class="security-filter security-filter--wide"> + <span class="security-filter-label">Search</span> + <input name="q" type="search" autocomplete="off" spellcheck="false" placeholder="CVE id or keyword"> + </label> + <button class="security-filter-reset" type="button">Clear</button> + <p class="security-filter-hint" id="security-version-hint">A version is checked against the published affected ranges of the selected project (Apache Camel when none is selected).</p> + </div> + <p class="security-filter-status" id="security-filter-status" role="status" aria-live="polite"></p> + + {{ $components := slice }} + {{ $groups := .Pages.GroupByDate "2006" "desc" }} + {{ $newest_year := int (index $groups 0).Key }} + {{ $earliest_year := int (index $groups (sub (len $groups) 1)).Key }} + {{ range $year := seq (now.Format "2006") $earliest_year }} + {{ $pages := slice }} + {{ range $groups }}{{ if eq (int .Key) $year }}{{ $pages = .Pages }}{{ end }}{{ end }} + <details class="security-year" data-year="{{ $year }}"{{ if ge $year $newest_year }} open{{ end }}> + <summary> + <h3 class="security-year-title">{{ $year }}</h3> + <span class="security-year-count" data-total="{{ len $pages }}">{{ with len $pages }}{{ . }} {{ cond (eq . 1) "advisory" "advisories" }}{{ else }}No issues reported{{ end }}</span> + </summary> + {{ with $pages }} + <div class="table-wrapper"> + <table class="security-advisories" aria-label="Security advisories published in {{ $year }}"> + <thead> <tr> - <th colspan="5" scope="row">{{ .Key }}</th> + <th scope="col">Reference</th> + <th scope="col">Affected</th> + <th scope="col">Fixed</th> + <th scope="col">Severity</th> + <th scope="col">Description</th> + </tr> + </thead> + <tbody> + {{ range . }} + {{ $d := partial "security/advisory-data.html" . }} + {{ $components = $components | append $d.components }} + <tr class="security-row" + data-project="{{ $d.project }}" + data-components="{{ delimit $d.components " " }}" + data-severity="{{ .Params.severity | lower }}" + data-affected="{{ $d.affected_ranges | jsonify }}"> + <td> + <a href="{{ .RelPermalink }}">{{ .Params.cve }}</a> + {{ if ne $d.project "camel" }}<span class="security-project">{{ index $projects $d.project | default $d.project }}</span>{{ end }} + </td> + <td>{{ .Params.affected }}</td> + <td>{{ .Params.fixed }}</td> + <td><span class="severity-chip security-severity severity-chip--{{ .Params.severity | lower }}">{{ .Params.severity | lower | title }}</span></td> + <td>{{ .Params.summary }}</td> </tr> - {{ range .Pages }} - <tr class="security-row"> - <td><a href="{{ .RelPermalink }}">{{ .Params.cve }}</a></td> - <td>{{ .Params.affected }}</td> - <td>{{ .Params.fixed }}</td> - <td><span class="severity-chip security-severity severity-chip--{{ .Params.severity | lower }}">{{ .Params.severity | lower | title }}</span></td> - <td>{{ .Params.summary }}</td> - </tr> - {{ end }} {{ end }} - {{ end }} - {{ else }} - <tr> - <th colspan="5" scope="row">{{ $year }}</th> - </tr> - <tr> - <td colspan="5"><em>No issues reported</em></td> - </tr> + </tbody> + </table> + </div> {{ end }} - {{ end }} - </tbody> - </table> - </div> + </details> + {{ end }} + <datalist id="security-components"> + {{ range $components | uniq | sort }}<option value="{{ . }}"></option>{{ end }} + </datalist> + {{ with resources.Get "js/security-advisories.js" | minify | fingerprint }} + <script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" defer></script> + {{ end }} </article> </main> diff --git a/scripts/security-advisory-data.js b/scripts/security-advisory-data.js new file mode 100644 index 00000000..10fdeb0d --- /dev/null +++ b/scripts/security-advisory-data.js @@ -0,0 +1,231 @@ +#!/usr/bin/env node +'use strict' + +// Keeps data/security-advisories.yaml in step with the advisories in +// content/security. +// +// The advisory pages describe the affected and fixed versions in free text +// ("From 4.0.0 before 4.18.5, from 4.19.0 before 4.22.1."). The /security/ +// filters and the "Security fixes in this release" section of the release +// notes need them as data, so this script parses the text into version ranges +// and writes them to the data file, keyed by CVE id. +// +// The data lives in its own file rather than in the advisory front matter +// because each CVE-*.md is signed byte for byte as CVE-*.txt.asc: adding a +// field to an already published advisory would make the page differ from the +// signed text. A new advisory may carry project, components, affected_ranges +// and fixed_versions in its front matter before it is signed instead; those +// take precedence over the data file, and the advisory then needs no entry. +// +// Usage: +// node scripts/security-advisory-data.js add entries for advisories that have none +// node scripts/security-advisory-data.js --check exit 1 if an advisory has no structured data +// +// Existing entries are never rewritten, so corrections made by hand stay. +// Review what the script adds: it reports every part of the text it could not +// parse, and it only finds components named as a "Camel-Xxx:" summary prefix. + +const fs = require('node:fs') +const path = require('node:path') +const yaml = require('js-yaml') + +const ROOT = path.join(__dirname, '..') +const CONTENT_DIR = path.join(ROOT, 'content', 'security') +const DATA_FILE = path.join(ROOT, 'data', 'security-advisories.yaml') + +const VERSION = '\\d+\\.\\d+\\.\\d+(?:-[A-Za-z0-9.]+)?' +const STRUCTURED_FIELDS = ['project', 'components', 'affected_ranges', 'fixed_versions'] + +const HEADER = `# Structured data for the security advisories in content/security, keyed by +# CVE id. It drives the filters on /security/ and the "Security fixes in this +# release" section of the release notes. The advisory pages themselves are +# signed (CVE-*.txt.asc), so this data is kept here instead of in their front +# matter. Run \`node scripts/security-advisory-data.js\` after adding an +# advisory, then review the new entry. +# +# project release category id from data/release-categories.yaml +# (camel, camel-k, camel-quarkus, ...), or karavan +# components artifact ids, e.g. camel-aws2-s3; empty when the issue is +# not tied to particular components +# affected_ranges {from: V, before: V} covers from <= v < before, +# {from: V, to: V} covers from <= v <= to; a missing from +# means every earlier version +# fixed_versions the releases that first contain the fix, one per line +` + +function versionPattern (source) { + return new RegExp(source.replaceAll('V', `(${VERSION})`), 'i') +} + +const RANGE_PATTERNS = [ + [versionPattern('^V before V$'), (m) => ({ from: m[1], before: m[2] })], + [versionPattern('^V (?:up to|through) V$'), (m) => ({ from: m[1], to: m[2] })], + [versionPattern('^(?:versions )?prior to V$'), (m) => ({ before: m[1] })], + [/^(\d+)\.(\d+)\.x before (\d+\.\d+\.\d+)$/i, (m) => ({ from: `${m[1]}.${m[2]}.0`, before: m[3] })], + [/^(\d+)\.(\d+)\.x$/i, (m) => ({ from: `${m[1]}.${m[2]}.0`, before: `${m[1]}.${Number(m[2]) + 1}.0` })], + [versionPattern('^V$'), (m) => ({ from: m[1], to: m[1] })], +] + +function parseVersion (version) { + const [core, qualifier] = String(version).split('-', 2) + return { parts: core.split('.').map(Number), qualifier } +} + +// Orders versions numerically; a qualified version (4.0.0-M1) sorts before +// the release it precedes, and qualifiers compare as text (M1 < M3 < RC1). +function compareVersions (a, b) { + const va = parseVersion(a) + const vb = parseVersion(b) + for (let i = 0; i < Math.max(va.parts.length, vb.parts.length); i++) { + const d = (va.parts[i] || 0) - (vb.parts[i] || 0) + if (d !== 0) return Math.sign(d) + } + if (va.qualifier === vb.qualifier) return 0 + if (!va.qualifier) return 1 + if (!vb.qualifier) return -1 + return va.qualifier < vb.qualifier ? -1 : 1 +} + +function inRange (version, range) { + if (range.from && compareVersions(version, range.from) < 0) return false + if (range.before) return compareVersions(version, range.before) < 0 + if (range.to) return compareVersions(version, range.to) <= 0 + return true +} + +function isEmptyRange (range) { + if (!range.from) return false + if (range.before) return compareVersions(range.from, range.before) >= 0 + return compareVersions(range.from, range.to) > 0 +} + +// Parses the free-text affected versions into ranges. Returns the ranges and +// the parts of the text that matched no pattern or described an empty range. +function parseAffected (text) { + const ranges = [] + const unparsed = [] + const cleaned = String(text) + .replace(/^.*?This issue affects Apache Camel [A-Za-z ]+:/i, '') + .replace(/\([^)]*\)/g, '') + .replace(/\.\s*$/, '') + for (let segment of cleaned.split(/\.\s+|,\s*|\s+and\s+/)) { + segment = segment.trim() + .replace(/^and\s+/i, '') + .replace(/^apache camel\s+/i, '') + .replace(/^from\s+/i, '') + .replace(/\s+/g, ' ') + if (!segment) continue + const match = RANGE_PATTERNS.map(([re, build]) => [segment.match(re), build]).find(([m]) => m) + if (!match) { + unparsed.push(segment) + continue + } + const range = match[1](match[0]) + if (isEmptyRange(range)) unparsed.push(`${segment} (empty range)`) + else ranges.push(range) + } + return { ranges, unparsed } +} + +function parseFixed (text) { + return [...String(text).matchAll(new RegExp(VERSION, 'g'))].map((m) => m[0]) +} + +function detectProject (fm) { + const text = `${fm.affected} ${fm.summary} ${fm.description}` + if (/Apache Camel K\b|^Camel K\b/.test(text) || /^Camel K\b/.test(fm.summary)) return 'camel-k' + if (/Apache Camel Quarkus|^Camel Quarkus\b/.test(text) || /^Camel Quarkus\b/.test(fm.summary)) return 'camel-quarkus' + if (/Apache Camel Karavan/.test(text) || /^Karavan\b/.test(fm.summary)) return 'karavan' + return 'camel' +} + +// Finds components named as a summary prefix: "Camel-AWS2-S3: ...", +// "Apache Camel: Camel-SQL: ...", "Camel-CXF and Camel-Knative ...". +function detectComponents (summary) { + const m = String(summary).match(/^(?:Apache Camel:\s*)?(Camel-[A-Za-z0-9-]+(?:\s+and\s+Camel-[A-Za-z0-9-]+)*)/) + if (!m) return [] + return m[1].split(/\s+and\s+/).map((name) => name.toLowerCase()) +} + +function readAdvisories () { + return fs.readdirSync(CONTENT_DIR) + .filter((f) => /^CVE-.*\.md$/.test(f)) + .map((f) => { + const text = fs.readFileSync(path.join(CONTENT_DIR, f), 'utf8') + const fm = yaml.load(text.split(/^---$/m)[1]) + return { file: f, fm } + }) +} + +function readData () { + if (!fs.existsSync(DATA_FILE)) return {} + return yaml.load(fs.readFileSync(DATA_FILE, 'utf8')) || {} +} + +function hasStructuredFrontMatter (fm) { + return STRUCTURED_FIELDS.every((field) => field in fm) +} + +function buildEntry (fm) { + const { ranges, unparsed } = parseAffected(fm.affected) + return { + entry: { + project: detectProject(fm), + components: detectComponents(fm.summary), + affected_ranges: ranges, + fixed_versions: parseFixed(fm.fixed), + }, + unparsed, + } +} + +function cveOrder (a, b) { + const [, ya, na] = a.split('-').map(Number) + const [, yb, nb] = b.split('-').map(Number) + return yb - ya || nb - na +} + +const q = (v) => JSON.stringify(String(v)) + +function renderRange (range) { + return '{' + ['from', 'before', 'to'].filter((k) => range[k]).map((k) => `${k}: ${q(range[k])}`).join(', ') + '}' +} + +function renderData (data) { + const lines = [HEADER] + for (const cve of Object.keys(data).sort(cveOrder)) { + const e = data[cve] + lines.push(`${cve}:`) + lines.push(` project: ${e.project}`) + lines.push(` components: [${(e.components || []).join(', ')}]`) + if (e.affected_ranges.length === 0) lines.push(' affected_ranges: []') + else { + lines.push(' affected_ranges:') + for (const range of e.affected_ranges) lines.push(` - ${renderRange(range)}`) + } + lines.push(` fixed_versions: [${e.fixed_versions.map(q).join(', ')}]`) + } + return lines.join('\n') + '\n' +} + +function main (args) { + const data = readData() + const missing = readAdvisories().filter(({ fm }) => !data[fm.cve] && !hasStructuredFrontMatter(fm)) + if (args.includes('--check')) { + for (const { file } of missing) console.error(`${file}: no entry in data/security-advisories.yaml`) + process.exit(missing.length ? 1 : 0) + } + for (const { file, fm } of missing) { + const { entry, unparsed } = buildEntry(fm) + data[fm.cve] = entry + console.log(`added ${fm.cve} (${entry.project}; ${entry.components.join(', ') || 'no components found'})`) + for (const part of unparsed) console.warn(` ${file}: could not parse affected "${part}"`) + if (entry.fixed_versions.length === 0) console.warn(` ${file}: no fixed versions found in "${fm.fixed}"`) + } + if (missing.length) fs.writeFileSync(DATA_FILE, renderData(data)) + else console.log('every advisory has structured data') +} + +module.exports = { compareVersions, inRange, parseAffected, parseFixed, detectProject, detectComponents, renderData, readAdvisories, readData, DATA_FILE } + +if (require.main === module) main(process.argv.slice(2)) diff --git a/test/security-advisories-test.js b/test/security-advisories-test.js new file mode 100644 index 00000000..34125546 --- /dev/null +++ b/test/security-advisories-test.js @@ -0,0 +1,86 @@ +'use strict' + +const assert = require('node:assert/strict') +const fs = require('node:fs') +const path = require('node:path') +const test = require('node:test') +const yaml = require('js-yaml') + +const { + compareVersions, inRange, parseAffected, parseFixed, detectProject, detectComponents, readAdvisories, readData, +} = require('../scripts/security-advisory-data') + +const advisories = readAdvisories() +const data = readData() +const categories = Object.keys(yaml.load(fs.readFileSync(path.join(__dirname, '..', 'data', 'release-categories.yaml'), 'utf8'))) +const PROJECTS = new Set([...categories, 'karavan']) +const VERSION = /^\d+\.\d+\.\d+(-[A-Za-z0-9.]+)?$/ + +test('every advisory has structured data', () => { + const missing = advisories.filter(({ fm }) => !data[fm.cve] && !fm.affected_ranges).map(({ fm }) => fm.cve) + assert.deepEqual(missing, [], 'run node scripts/security-advisory-data.js and review the new entries') +}) + +test('every data entry belongs to an advisory page', () => { + const cves = new Set(advisories.map(({ fm }) => fm.cve)) + assert.deepEqual(Object.keys(data).filter((cve) => !cves.has(cve)), []) +}) + +test('the data entries are well formed and consistent', () => { + for (const [cve, e] of Object.entries(data)) { + assert.ok(PROJECTS.has(e.project), `${cve}: unknown project ${e.project}`) + assert.ok(Array.isArray(e.components), `${cve}: components must be a list`) + assert.ok(e.affected_ranges.length > 0, `${cve}: no affected ranges`) + assert.ok(e.fixed_versions.length > 0, `${cve}: no fixed versions`) + for (const range of e.affected_ranges) { + for (const v of Object.values(range)) assert.match(String(v), VERSION, `${cve}: bad version in range`) + assert.ok(range.before || range.to, `${cve}: range without an upper bound`) + } + for (const v of e.fixed_versions) { + assert.match(String(v), VERSION, `${cve}: bad fixed version ${v}`) + assert.ok(!e.affected_ranges.some((r) => inRange(v, r)), `${cve}: fixed version ${v} is inside an affected range`) + } + } +}) + +test('versions compare numerically, with qualifiers before the release', () => { + assert.equal(compareVersions('4.10.0', '4.9.9'), 1) + assert.equal(compareVersions('4.18.4', '4.18.4'), 0) + assert.equal(compareVersions('4.0.0-M3', '4.0.0'), -1) + assert.equal(compareVersions('4.0.0-M3', '4.0.0-RC1'), -1) +}) + +test('ranges: before is exclusive, to is inclusive, a missing from is open', () => { + assert.ok(inRange('4.18.4', { from: '4.0.0', before: '4.18.5' })) + assert.ok(!inRange('4.18.5', { from: '4.0.0', before: '4.18.5' })) + assert.ok(inRange('2.21.1', { from: '2.21.0', to: '2.21.1' })) + assert.ok(inRange('1.6.0', { before: '2.24.0' })) +}) + +test('the affected-version phrasings used by the advisories parse', () => { + const cases = { + 'From 4.0.0 before 4.18.5, from 4.19.0 before 4.22.1.': [{ from: '4.0.0', before: '4.18.5' }, { from: '4.19.0', before: '4.22.1' }], + 'This issue affects Apache Camel K: from 2.0.0 before 2.9.3, from 2.10.0 before 2.10.2': [{ from: '2.0.0', before: '2.9.3' }, { from: '2.10.0', before: '2.10.2' }], + '2.9.0 up to 2.9.7, 2.12.0': [{ from: '2.9.0', to: '2.9.7' }, { from: '2.12.0', to: '2.12.0' }], + '2.24.x, 2.25.0 and 2.25.1': [{ from: '2.24.0', before: '2.25.0' }, { from: '2.25.0', to: '2.25.0' }, { from: '2.25.1', to: '2.25.1' }], + 'Apache Camel versions prior to 2.24.0': [{ before: '2.24.0' }], + 'Apache Camel 4.10.x before 4.10.8, Apache Camel 4.15.0 and 4.16.0.': [{ from: '4.10.0', before: '4.10.8' }, { from: '4.15.0', to: '4.15.0' }, { from: '4.16.0', to: '4.16.0' }], + 'Apache Camel 4.14.0 through 4.14.7 (4.14.x line). Apache Camel 4.20.0.': [{ from: '4.14.0', to: '4.14.7' }, { from: '4.20.0', to: '4.20.0' }], + '4.0.0-M1 up to 4.0.0-M3': [{ from: '4.0.0-M1', to: '4.0.0-M3' }], + } + for (const [text, ranges] of Object.entries(cases)) { + assert.deepEqual(parseAffected(text), { ranges, unparsed: [] }, text) + } + assert.deepEqual(parseAffected('from 4.19.0 before 4.19.0').unparsed, ['4.19.0 before 4.19.0 (empty range)']) +}) + +test('fixed versions, project and components are read from the text', () => { + assert.deepEqual(parseFixed('4.14.8, 4.18.3 and 4.21.0'), ['4.14.8', '4.18.3', '4.21.0']) + assert.deepEqual(parseFixed('2.9.8, 2.12.1 and newer'), ['2.9.8', '2.12.1']) + assert.equal(detectProject({ affected: 'This issue affects Apache Camel K: from 2.0.0 before 2.9.3', summary: '', description: '' }), 'camel-k') + assert.equal(detectProject({ affected: 'From 4.0.0 before 4.22.1.', summary: 'Karavan applies ...', description: '' }), 'karavan') + assert.equal(detectProject({ affected: 'From 4.0.0 before 4.22.1.', summary: 'Camel-FTP: ...', description: '' }), 'camel') + assert.deepEqual(detectComponents('Apache Camel: Camel-SQL: Unsafe Deserialization'), ['camel-sql']) + assert.deepEqual(detectComponents('Camel-Vertx-Http and Camel-Netty-Http: Unsafe'), ['camel-vertx-http', 'camel-netty-http']) + assert.deepEqual(detectComponents('LDAP Injection in camel-ldap'), []) +})
