diff --git a/.github/DEPENDENCY_DECISIONS.md b/.github/DEPENDENCY_DECISIONS.md index bb48461..afe9176 100644 --- a/.github/DEPENDENCY_DECISIONS.md +++ b/.github/DEPENDENCY_DECISIONS.md @@ -4,7 +4,7 @@ Initial review: 2026-09-26. Focused API follow-up: 2026-09-27. Dependabot proposal-policy follow-up: 2026-09-28. Jackson and proposal-routing follow-up: 2026-10-05. Maven 3.10.0 wrapper follow-up: 2026-10-11. Maven 3.10.1 wrapper follow-up: 2026-11-16. Maven 3.10.2 wrapper follow-up: 2026-11-23. Build -Helper Plexus Utils pin: 2026-11-30. +Helper Plexus Utils pin and Selenium 4.54.0: 2026-11-30. PRs [#176](https://github.com/OWASP/owasp-java-encoder/pull/176) and [#188](https://github.com/OWASP/owasp-java-encoder/pull/188) mixed ordinary build @@ -277,6 +277,25 @@ policy test. Remove either pin when its plugin resolves 4.0.3 or newer without it. A plugin update can lower a transitive as well as raise it, so compare the resolved plugin closure before and after, not only the declared versions. +## Selenium 4.54.0 retires the fixture's Guava pin — 2026-11-30 + +Move the Jakarta fixture's Selenium client from 4.49.0 to **4.54.0** and its +browser image from `selenium/standalone-chrome:4.49.0-20260909` to +`4.54.0-20261124` together, as the fixture README requires. The new image is +Chrome and ChromeDriver 158 on Ubuntu 26.04; its index digest +`fbce10ba…e270` equals the SHA-256 of the registry's index response and lists +linux/amd64 and linux/arm64. Boot 4.2.0 manages Selenium 4.51.0, so the 4.49.0 +override had been holding the fixture below Boot's own version; the override +stays, now above it, to keep the client on the image's release. + +Selenium 4.54.0 depends on Guava 33.8.0 and OpenTelemetry 1.68.0. With the +fixture's Guava dependency-management pin removed, its test tree resolves +Guava 33.8.0-jre and OpenTelemetry 1.68.0, so the pin from the 2026-11-16 and +2026-11-23 entries is removed, as those entries planned. The WAR plugin realm's +Guava pin is unrelated and stays. A policy test keeps the client version equal +to the image tag and fails if a Guava pin returns to the fixture's dependency +management. The browser test needs Docker and runs in CI, not locally. + ## Deferred proposals and reconsideration conditions | Proposal | Disposition and required evidence before reconsideration | diff --git a/CHANGELOG.md b/CHANGELOG.md index d8c94f8..2d1f522 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,9 @@ unchanged. [1.6.0 is available from Central](releases/1.6.0-central-publication. - Pin Plexus Utils 4.0.3 in the Build Helper and Maven Wrapper plugin realms. Build Helper 3.9.0 otherwise resolves 4.0.2, which GHSA-6fmv-xxpf-w3cw affects. Published library dependencies are unchanged. +- Move the Jakarta fixture to Selenium 4.54.0 and its matching browser image. + Selenium now brings Guava 33.8.0 itself, so the fixture's Guava pin is gone. + Published library dependencies are unchanged. - Build with Maven 3.10.2, the second 3.10.0 bugfix release, through the committed wrapper and require it for signed releases. Ordinary builds still accept Maven 3.9.16 or later (validation: diff --git a/jakarta-test/README.md b/jakarta-test/README.md index 75315c7..fb6e7b9 100644 --- a/jakarta-test/README.md +++ b/jakarta-test/README.md @@ -38,13 +38,14 @@ A local Chrome-only diagnostic for the JavaScript suite remains available with ## Framework and API boundaries -As reviewed on 2026-11-23, this fixture uses supported Spring Boot **4.2.0** and +As reviewed on 2026-11-30, 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; 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 +Selenium **4.54.0**, aligned with the current reviewed browser image; Boot manages +4.51.0. Selenium 4.54.0 brings the test-only Guava **33.8.0** itself, which fixes +GHSA-xxph-c9ww-hj94 and GHSA-v5x9-67m3-7m56, so the fixture no longer pins it. +OpenTelemetry (**1.68.0**) follows the Boot BOM, 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 @@ -71,16 +72,17 @@ this Boot application is not an OSGi container test. `BrowserFixture.java` and test-only `testcontainers.properties` contain immutable multi-platform index digests fetched from Docker Hub's registry and verified -against the SHA-256 of each manifest response on 2026-09-25: +against the SHA-256 of each manifest response on 2026-09-25 (the browser image +again on 2026-11-30, when it moved to 4.54.0): | Use | Reviewed tag | Index SHA-256 | | --- | --- | --- | -| Browser | `selenium/standalone-chrome:4.49.0-20260909` | `7efe71e7e4a83bdf574b26bd354690928075e8f443223d2ced16a2c208eae1d7` | +| Browser | `selenium/standalone-chrome:4.54.0-20261124` | `fbce10ba3f369aa6d3c122a4cab9b7e72af2e80ac45f5e6c306f05b2ff83e270` | | Cleanup | `testcontainers/ryuk:0.14.0` | `7c1a8a9a47c780ed0f983770a662f80deb115d95cce3e2daa3d12115b8cd28f0` | | Host-port forwarding | `testcontainers/sshd:1.3.0` | `c50c0f59554dcdb2d9e5e705112144428ae9d04ac0af6322b365a18e24213a6a` | | Docker startup probe | `alpine:3.24.2` | `294b683cb724975bec92580e1e685676bd4b50bda910ddb8c51d4cabeaec77e6` | -The [Selenium release](https://github.com/SeleniumHQ/docker-selenium/releases/tag/4.49.0-20260909) +The [Selenium release](https://github.com/SeleniumHQ/docker-selenium/releases/tag/4.54.0-20261124) and [Testcontainers 2.0.5 source](https://github.com/testcontainers/testcontainers-java/tree/2.0.5) control the browser/helper choices. The startup probe uses maintained Alpine instead of the old default 3.17. Digest pins provide immutable identity, not a diff --git a/jakarta-test/pom.xml b/jakarta-test/pom.xml index 20b4517..533698a 100644 --- a/jakarta-test/pom.xml +++ b/jakarta-test/pom.xml @@ -23,17 +23,11 @@ true 17 - 4.49.0 + 4.54.0 1.6.1-SNAPSHOT - - - - com.google.guavaguava33.8.0-jre - - org.owasp.encoder diff --git a/jakarta-test/src/test/java/org/owasp/encoder/testing/jakarta_test/BrowserFixture.java b/jakarta-test/src/test/java/org/owasp/encoder/testing/jakarta_test/BrowserFixture.java index ba702e6..0143b04 100644 --- a/jakarta-test/src/test/java/org/owasp/encoder/testing/jakarta_test/BrowserFixture.java +++ b/jakarta-test/src/test/java/org/owasp/encoder/testing/jakarta_test/BrowserFixture.java @@ -6,7 +6,7 @@ /** One reviewed image for every required browser test; see README.md. */ final class BrowserFixture { - private static final String IMAGE = "selenium/standalone-chrome:4.49.0-20260909@sha256:7efe71e7e4a83bdf574b26bd354690928075e8f443223d2ced16a2c208eae1d7"; + private static final String IMAGE = "selenium/standalone-chrome:4.54.0-20261124@sha256:fbce10ba3f369aa6d3c122a4cab9b7e72af2e80ac45f5e6c306f05b2ff83e270"; static BrowserWebDriverContainer container(ChromeOptions options) { return new BrowserWebDriverContainer<>(DockerImageName.parse(IMAGE) diff --git a/scripts/tests/test_ci_policy.py b/scripts/tests/test_ci_policy.py index 03ee2fb..42f9d9f 100644 --- a/scripts/tests/test_ci_policy.py +++ b/scripts/tests/test_ci_policy.py @@ -405,6 +405,25 @@ def test_boot_fixture_keeps_no_superseded_overrides(self): for dep in app.iter('{%s}dependency' % version.NS['p']): self.assertNotEqual('tools.jackson.core', dep.findtext( 'p:groupId', namespaces=version.NS)) + # Selenium 4.54.0 brings Guava 33.8.0 itself; a test-classpath pin + # would only hide a later Selenium's newer Guava. + for dep in app.iterfind( + 'p:dependencyManagement/p:dependencies/p:dependency', version.NS): + self.assertNotEqual('guava', dep.findtext( + 'p:artifactId', namespaces=version.NS)) + + def test_selenium_client_matches_browser_image(self): + app = ET.parse(ROOT / 'jakarta-test/pom.xml').getroot() + client = app.findtext('p:properties/p:selenium.version', namespaces=version.NS) + fixture = (ROOT / 'jakarta-test/src/test/java/org/owasp/encoder/testing/' + 'jakarta_test/BrowserFixture.java').read_text() + image = re.search(r'selenium/standalone-chrome:([0-9.]+)-\d{8}@sha256:([0-9a-f]{64})', + fixture) + self.assertIsNotNone(image) + self.assertEqual(client, image.group(1)) + readme = (ROOT / 'jakarta-test/README.md').read_text() + self.assertIn('`selenium/standalone-chrome:%s-' % client, readme) + self.assertIn(image.group(2), readme) def test_publisher_realm_keeps_httpcore_on_its_httpclient_line(self): # No CI job runs the Central publisher, so a green build says nothing