diff --git a/.github/CI_SECURITY.md b/.github/CI_SECURITY.md index 10f975a..176bcd6 100644 --- a/.github/CI_SECURITY.md +++ b/.github/CI_SECURITY.md @@ -91,7 +91,8 @@ present. Baseline-sensitive API, JSP-engine and build-plugin dependencies and the Maven distribution used by the wrapper are excluded from the broad Maven **version-update group**, so unsuppressed proposals -receive individual review. Reviewed incompatible minor and major proposal classes use +receive individual review. The Central publisher's HttpClient and HttpCore pins +have their own group so that they move together. Reviewed incompatible minor and major proposal classes use `ignore.update-types`; GitHub applies those rules only to version updates, so security updates remain eligible and the security-update group is unchanged. Dependabot classifies repeated Maven coordinates from their lowest occurrence; diff --git a/.github/DEPENDENCY_DECISIONS.md b/.github/DEPENDENCY_DECISIONS.md index cc34e74..66a2397 100644 --- a/.github/DEPENDENCY_DECISIONS.md +++ b/.github/DEPENDENCY_DECISIONS.md @@ -175,6 +175,48 @@ realms. The publisher realm was resolved, not executed, because there is no publishing run that skips signing and Central credentials. The next signed release rehearsal should confirm it before a release relies on it. +## Boot 4.2.0, Guava 33.8.0 and HttpCore — 2026-11-23 + +Grouped PR [#272](https://github.com/OWASP/owasp-java-encoder/pull/272) +proposed seven updates and passed CI. A separate change takes five of them, +keeps HttpCore and httpcore5-h2 on 5.4.4, and removes the OpenTelemetry +override that #272 left in place. + +- Spring Boot **4.2.0** for the Jakarta fixture. It manages OpenTelemetry + 1.68.0, so the fixture's `opentelemetry.version` 1.67.0 override is removed, + as planned above. #272 kept the override, which would have lowered Boot's + version. A policy test fails if it returns. Boot 4.2.0 still manages Tomcat + 11.0.27 and now manages Selenium 4.51.0; the fixture stays on 4.49.0 with the + digest-pinned browser image, so that override is now below Boot's version. +- Guava **33.8.0-jre** in every pin from the 2026-11-16 entry. + [GHSA-v5x9-67m3-7m56](https://github.com/google/guava/security/advisories/GHSA-v5x9-67m3-7m56) + (low severity, hash flooding) affects Guava through 33.7.2 and is fixed in + 33.8.0. So far it is published only as a Guava repository advisory, so no + Dependabot alert reports it. This raises the removal conditions in that + entry: drop a plugin-realm pin when the plugin's own graph reaches 33.8.0, + not 33.7.2, and Selenium 4.52.0, which depends on Guava 33.7.2, no longer + lets the fixture drop its dependency-management pin. +- plexus-archiver **4.16.0**, which upstream describes as binary compatible + with 4.15.0, Maven Help Plugin **3.6.0**, which now requires Maven 3.9.0 (this + build requires 3.9.16), and Versions Maven Plugin **2.25.2**. +- HttpCore and httpcore5-h2 stay on **5.4.4**. The publisher realm pins + HttpClient 5.6.5, which was built against HttpCore 5.4.4; HttpClient 5.7, the + line built on HttpCore 5.5, is still in beta. Boot 4.2.0's own Maven plugin + resolves the same 5.6.5 and 5.4.4 pair. No published advisory affects 5.4.4 + (GHSA-hf6x-8p5f-cgmf and GHSA-v3jc-474w-2wm6 were fixed in 5.4.3). No CI job + runs the publisher, so #272's passing checks did not exercise this pairing. + The configuration now moves HttpClient and both HttpCore coordinates from the + broad group into their own `httpcomponents` group, so their patch releases + arrive together, and ignores HttpCore's minor and major version updates. + Patch and security updates remain eligible. A policy test keeps the two + HttpCore pins equal and on the line the HttpClient pin was built against. + When HttpClient 5.7 is released, its proposal arrives alone in that group + and fails the test by design. Then move the client and both HttpCore pins + together, confirm the publisher in a release rehearsal, and update the ignore + rules and the test with them. An advisory fixed only in HttpCore 5.5 forces + that review earlier: a security update is not subject to the ignore rules + and would fail the same test. + ## Maven 3.10.1 wrapper — 2026-11-16 Accept the Maven **3.10.1** distribution proposed by Dependabot PR @@ -245,13 +287,14 @@ record; a grouped PR closure is not proof that every proposed upgrade was applie ## Future Dependabot proposals -The [configuration](dependabot.yml) excludes twelve coordinates from the broad +The [configuration](dependabot.yml) excludes thirteen coordinates from the broad Maven **version-update group**: the nine baseline-sensitive coordinates above, -the two Boot plugin-realm Jackson coordinates and the Maven distribution used by -the wrapper. For the eight of those coordinates with a rejected proposal in -#218–#227 and the two Jackson coordinates from #232, it also ignores only the -SemVer minor or major version-update classes covered by the decisions above. The -Maven wrapper has no ignore rule. The two Tomcat engine coordinates, the other +the publisher realm's HttpClient and two HttpCore coordinates, which share the +`httpcomponents` group, and the Maven distribution used by the wrapper. For the +eight of those coordinates with a rejected proposal in #218–#227 and the two +HttpCore coordinates from #272, it also ignores only the SemVer minor or major +version-update classes covered by the decisions above. The Maven wrapper and +HttpClient have no ignore rule. The two Tomcat engine coordinates, the other rejected proposals in that range, have their own entries described below. This prevents the weekly job from recreating proposals that merely replace historical comparators, minimum-consumer fixtures, coherent servlet-engine diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 6078c95..aae78ea 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -32,9 +32,22 @@ updates: - jakarta.el:jakarta.el-api # The wrapper's Maven version is a separately reviewed toolchain change. - org.apache.maven:apache-maven + # The publisher realm's HTTP stack moves together; see httpcomponents. + - org.apache.httpcomponents.client5:httpclient5 + - org.apache.httpcomponents.core5:httpcore5 + - org.apache.httpcomponents.core5:httpcore5-h2 maven-security: applies-to: security-updates patterns: ['*'] + # The Central publisher pins HttpClient with the HttpCore line it was + # built against. One pull request keeps the two HttpCore pins equal and + # keeps an HttpClient line change out of the broad group. + httpcomponents: + applies-to: version-updates + patterns: + - org.apache.httpcomponents.client5:httpclient5 + - org.apache.httpcomponents.core5:httpcore5 + - org.apache.httpcomponents.core5:httpcore5-h2 # Suppress only the routine SemVer update classes already rejected by the # documented compatibility review. GitHub applies update-types only to # version updates, so security updates remain eligible. Dependabot combines @@ -77,6 +90,16 @@ updates: update-types: - version-update:semver-minor - version-update:semver-major + # The Central publisher's HttpClient 5.6 pin was built against HttpCore + # 5.4, and no CI job runs that realm. Move both together by hand. + - dependency-name: org.apache.httpcomponents.core5:httpcore5 + update-types: + - version-update:semver-minor + - version-update:semver-major + - dependency-name: org.apache.httpcomponents.core5:httpcore5-h2 + update-types: + - version-update:semver-minor + - version-update:semver-major # The JSP engine fixtures pin Tomcat 9.0 in jsp/ and 10.1 in jakarta/ # under the same coordinates. This scan would combine them from 9.0 and # write that line's release into both modules, so the /jsp and /jakarta diff --git a/CHANGELOG.md b/CHANGELOG.md index 8dde853..7f76aca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,11 @@ unchanged. [1.6.0 is available from Central](releases/1.6.0-central-publication. exceeds. Refresh Maven build plugins, plexus-archiver, japicmp, and the test/publisher-only Jackson 2.22.4. Published library dependencies are unchanged. +- Move that fixture to Spring Boot 4.2.0, which manages OpenTelemetry 1.68.0, + so the 1.67.0 override in the next entry is gone. Raise that entry's Guava + pins to 33.8.0 for GHSA-v5x9-67m3-7m56, and refresh plexus-archiver and the + Maven Help and Versions plugins. Published library dependencies are + unchanged. - Pin Guava 33.7.2 in the Checkstyle, japicmp, WAR and Central publisher plugin realms and the Jakarta fixture's Selenium tests, and raise the fixture's OpenTelemetry to 1.67.0, for GHSA-xxph-c9ww-hj94 and diff --git a/jakarta-test/README.md b/jakarta-test/README.md index 51c7a35..75315c7 100644 --- a/jakarta-test/README.md +++ b/jakarta-test/README.md @@ -38,12 +38,13 @@ A local Chrome-only diagnostic for the JavaScript suite remains available with ## Framework and API boundaries -As reviewed on 2026-10-26, this fixture uses supported Spring Boot **4.1.2** and +As reviewed on 2026-11-23, this fixture uses supported Spring Boot **4.2.0** and its managed dependencies, on JDK **17**, with Tomcat/Jasper **11.0.27** (Servlet **6.1**, Pages **4.0**, EL **6.0**). The deliberate BOM override is -Selenium 4.49.0, aligned with the current reviewed browser image. Its test-only -Guava (**33.7.2**) and OpenTelemetry (**1.67.0**) are raised to the first -releases that fix GHSA-xxph-c9ww-hj94 and GHSA-ccrj-gw8r-854m; see the +Selenium 4.49.0, aligned with the current reviewed browser image; Boot manages +4.51.0. Its test-only Guava is pinned to **33.8.0**, which fixes +GHSA-xxph-c9ww-hj94 and GHSA-v5x9-67m3-7m56. OpenTelemetry (**1.68.0**) follows +the Boot BOM again, past the 1.67.0 that fixes GHSA-ccrj-gw8r-854m; see the [dependency decisions](../.github/DEPENDENCY_DECISIONS.md). Testcontainers **2.0.5**, JSTL API **3.0.2** and implementation **3.0.1** follow the Boot BOM. The standalone Servlet/Pages/EL API JARs are removed; Tomcat supplies diff --git a/jakarta-test/pom.xml b/jakarta-test/pom.xml index 6f70996..20b4517 100644 --- a/jakarta-test/pom.xml +++ b/jakarta-test/pom.xml @@ -5,7 +5,7 @@ org.springframework.boot spring-boot-starter-parent - 4.1.2 + 4.2.0 org.owasp.encoder.testing @@ -24,17 +24,14 @@ 17 4.49.0 - - 1.67.0 1.6.1-SNAPSHOT - - com.google.guavaguava33.7.2-jre + + com.google.guavaguava33.8.0-jre @@ -121,10 +118,10 @@ 12.3.1 org.apache.commonscommons-lang33.22.0 - org.codehaus.plexusplexus-archiver4.15.0 + org.codehaus.plexusplexus-archiver4.16.0 org.codehaus.plexusplexus-utils4.0.3 - - com.google.guavaguava33.7.2-jre + + com.google.guavaguava33.8.0-jre ${maven.multiModuleProjectDirectory}/src/main/config/checkstyle.xml @@ -199,10 +196,10 @@ org.apache.maven.plugins maven-war-plugin - org.codehaus.plexusplexus-archiver4.15.0 + org.codehaus.plexusplexus-archiver4.16.0 org.codehaus.plexusplexus-utils4.0.3 - - com.google.guavaguava33.7.2-jre + + com.google.guavaguava33.8.0-jre diff --git a/pom.xml b/pom.xml index fbe2388..72f46f5 100644 --- a/pom.xml +++ b/pom.xml @@ -198,7 +198,7 @@ org.apache.maven.plugins maven-help-plugin - 3.5.2 + 3.6.0 org.jsoupjsoup1.24.1 @@ -273,7 +273,7 @@ maven-source-plugin 3.4.0 - org.codehaus.plexusplexus-archiver4.15.0 + org.codehaus.plexusplexus-archiver4.16.0 org.codehaus.plexusplexus-utils4.0.3 @@ -283,7 +283,7 @@ 3.12.0 commons-beanutilscommons-beanutils1.11.0 - org.codehaus.plexusplexus-archiver4.15.0 + org.codehaus.plexusplexus-archiver4.16.0 org.codehaus.plexusplexus-utils4.0.3 @@ -323,13 +323,13 @@ 6.2.0 commons-beanutilscommons-beanutils1.11.0 - org.codehaus.plexusplexus-archiver4.15.0 + org.codehaus.plexusplexus-archiver4.16.0 org.codehaus.mojo versions-maven-plugin - 2.25.1 + 2.25.2 @@ -343,8 +343,8 @@ japicmp 0.27.0 - - com.google.guavaguava33.7.2-jre + + com.google.guavaguava33.8.0-jre @@ -378,8 +378,8 @@ central-publishing-maven-plugin 0.12.0 - - com.google.guavaguava33.7.2-jre + + com.google.guavaguava33.8.0-jre @@ -420,10 +420,10 @@ 12.3.1 org.apache.commonscommons-lang33.22.0 - org.codehaus.plexusplexus-archiver4.15.0 + org.codehaus.plexusplexus-archiver4.16.0 org.codehaus.plexusplexus-utils4.0.3 - - com.google.guavaguava33.7.2-jre + + com.google.guavaguava33.8.0-jre ${maven.multiModuleProjectDirectory}/src/main/config/checkstyle.xml diff --git a/scripts/tests/test_ci_policy.py b/scripts/tests/test_ci_policy.py index 3b6f165..aaf19ab 100644 --- a/scripts/tests/test_ci_policy.py +++ b/scripts/tests/test_ci_policy.py @@ -209,6 +209,8 @@ def test_dependabot_scopes_reviewed_ignores_to_version_updates(self): 'jakarta.servlet.jsp:jakarta.servlet.jsp-api': minor_and_major, 'jakarta.servlet:jakarta.servlet-api': minor_and_major, 'jakarta.el:jakarta.el-api': minor_and_major, + 'org.apache.httpcomponents.core5:httpcore5': minor_and_major, + 'org.apache.httpcomponents.core5:httpcore5-h2': minor_and_major, 'org.apache.tomcat.embed:tomcat-embed-jasper': [], 'org.apache.tomcat:tomcat-annotations-api': [], } @@ -253,6 +255,8 @@ def test_dependabot_routes_reviewed_coordinates_out_of_broad_group(self): # The wrapper's Maven distribution needs individual review; a mixed # group PR cannot pass its checks. self.assertIn('org.apache.maven:apache-maven', excluded) + # An HttpClient line change must not fail the broad group either. + self.assertIn('org.apache.httpcomponents.client5:httpclient5', excluded) ignore = parse_dependabot_ignore(maven.split(' ignore:\n', 1)[1]) versioned = {name for name, update_types in ignore.items() if update_types} @@ -384,7 +388,7 @@ def test_only_executed_plugins_are_submitted(self): self.assertLess(workflow.index('Resolve shared library build plugins'), workflow.index(app_command)) - def test_boot_plugin_realm_uses_boot_managed_jackson(self): + def test_boot_fixture_keeps_no_superseded_overrides(self): # Boot 4.1.2's buildpack platform brings the patched Jackson 3.1 line. # A stale exact pin here would silently downgrade it, and Enforcer # rules do not inspect plugin realms. @@ -392,10 +396,53 @@ def test_boot_plugin_realm_uses_boot_managed_jackson(self): self.assertIsNone(app.find( 'p:properties/p:jackson.build.version', version.NS)) self.assertIsNone(app.find('p:properties/p:tomcat.version', version.NS)) + # Boot 4.2.0 manages OpenTelemetry 1.68.0. The 1.67.0 override that + # fixed GHSA-ccrj-gw8r-854m under Boot 4.1.2 would now lower it. + self.assertIsNone(app.find( + 'p:properties/p:opentelemetry.version', version.NS)) for dep in app.iter('{%s}dependency' % version.NS['p']): self.assertNotEqual('tools.jackson.core', dep.findtext( 'p:groupId', namespaces=version.NS)) + def test_publisher_realm_keeps_httpcore_on_its_httpclient_line(self): + # No CI job runs the Central publisher, so a green build says nothing + # about its HTTP stack. #272 proposed HttpCore 5.5 under HttpClient + # 5.6.5, which was built against HttpCore 5.4. Add a line here only + # with the HttpCore line that HttpClient release was built against. + built_against = {'5.6.': '5.4.'} + dependabot = (ROOT / '.github/dependabot.yml').read_text() + match = re.search(r'^ httpcomponents:\n((?: {8}.*\n)+)', dependabot, + re.M) + self.assertIsNotNone(match) + group = match.group(1) + self.assertIn(' applies-to: version-updates\n', group) + self.assertEqual( + ['org.apache.httpcomponents.client5:httpclient5', + 'org.apache.httpcomponents.core5:httpcore5', + 'org.apache.httpcomponents.core5:httpcore5-h2'], + [line.split('- ', 1)[1].strip() for line in group.splitlines() + if line.startswith(' - ')]) + root = ET.parse(ROOT / 'pom.xml').getroot() + pins = {} + for plugin in root.iter('{%s}plugin' % version.NS['p']): + if plugin.findtext('p:artifactId', namespaces=version.NS) \ + != 'central-publishing-maven-plugin': + continue + for dependency in plugin.findall('p:dependencies/p:dependency', + version.NS): + artifact = dependency.findtext('p:artifactId', namespaces=version.NS) + if artifact in ('httpclient5', 'httpcore5', 'httpcore5-h2'): + self.assertNotIn(artifact, pins) + pins[artifact] = dependency.findtext( + 'p:version', namespaces=version.NS) + self.assertEqual({'httpclient5', 'httpcore5', 'httpcore5-h2'}, set(pins)) + client_line = next((line for line in built_against + if pins['httpclient5'].startswith(line)), None) + self.assertIsNotNone(client_line, pins) + self.assertEqual(pins['httpcore5'], pins['httpcore5-h2']) + self.assertTrue(pins['httpcore5'].startswith(built_against[client_line]), + pins) + def test_consumer_fixture_downloader_uses_submitted_patched_realm(self): workflow = (ROOT / '.github/workflows/dependency-submission.yaml').read_text() fixture_command = '-f compatibility/dependencies/pom.xml'