From 63db0e3e9aaad08f31e54bbc33bd1bc5b658199c Mon Sep 17 00:00:00 2001 From: Jim Manico Date: Mon, 30 Nov 2026 20:13:14 +0700 Subject: [PATCH] Move the Plexus Utils 4.x plugin realms to 4.2.0 Raise the ten 4.x plugin-realm pins from 4.0.3 to 4.2.0, which stops FileUtils deletes from following symbolic links out of the tree. No advisory affects 4.2.0; its signature verifies against a key in Apache Maven's KEYS file. Built JARs are byte-identical and the fixture WAR's contents are unchanged apart from its own POM. The policy test now also rejects any pin in a known advisory range and any split within a line. --- .github/DEPENDENCY_DECISIONS.md | 51 +++++++++++++++++++++++++++++---- CHANGELOG.md | 4 +++ jakarta-test/pom.xml | 6 ++-- pom.xml | 14 ++++----- scripts/tests/test_ci_policy.py | 10 +++++++ 5 files changed, 70 insertions(+), 15 deletions(-) diff --git a/.github/DEPENDENCY_DECISIONS.md b/.github/DEPENDENCY_DECISIONS.md index afe9176..171a942 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 and Selenium 4.54.0: 2026-11-30. +Helper Plexus Utils pin, Selenium 4.54.0 and Plexus Utils 4.2.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 @@ -296,6 +296,47 @@ 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. +## Plexus Utils 4.2.0 in the 4.x realms — 2026-11-30 + +Move all ten 4.x plugin-realm pins from 4.0.3 to **4.2.0**: Clean, Antrun, +Source, Javadoc, Checkstyle, Maven Wrapper and Build Helper in the root build, +and Checkstyle, Clean and WAR in the Jakarta fixture. The six 3.6 realms stay +on 3.6.4, because their plugins resolve the 3.x line without a pin. + +Security review: + +- **Advisories.** No GitHub or OSV advisory affects 4.2.0. The only advisory + touching 4.x, GHSA-6fmv-xxpf-w3cw, is fixed in 4.0.3. plexus-xml is an + optional dependency of 4.2.0, so the pin adds no plexus-xml to any realm. +- **Provenance.** The JAR the build resolved has SHA-256 + `67a4240e08284c7514bf1e34de349125dfce7a3d1f51aaab32010d5b61df5068`. It and + the POM verify against key `32118CF76C9EC5D918E54967CA80D1F0EB6CA4BA` + (Sylwester Lachiewicz), which is in Apache Maven's `KEYS` file and whose + signatures on the Plexus Utils 3.6.4 and plexus-archiver 4.16.0 JARs this + build already pins also verify. 4.0.3 was signed by Guillaume Nodet's key, also a Maven committer's. +- **Behavior.** 4.2.0 stops `FileUtils.forceDeleteOnExit` and + `deleteDirectory` from following symbolic links out of the tree being deleted, + the same fix 3.6.3 gave the 3.x realms. 4.1.0 stopped `DirectoryScanner` + from excluding `.gitignore` and `.cvsignore` by default; this repository's + only such files are at the root and in `compatibility/`, outside every + packaged source, resource and webapp tree. `translateCommandline` now splits + at tabs and line breaks outside quotes; the antrun JSP engine passes each + argument as a single ``, and no configured argument contains one. +- **Evidence.** Built JARs, including source and Javadoc JARs, are + byte-identical to main. The fixture WAR's 193 entries match main's by name, + size and CRC except its own embedded `pom.xml`. With and without the signing + profile, and for the fixture's executed plugins, no realm resolves a Plexus + Utils version in an advisory range. The Maven Wrapper Plugin realm, which the + normal build never runs, was executed in a scratch copy with `wrapper:wrapper`: + it loaded 4.2.0 and regenerated `mvnw` and `mvnw.cmd` byte for byte. + +The policy test now also fails if any pin falls into an advisory range +(below 3.6.1 on 3.x, below 4.0.3 on 4.x) or if the realms on one major line +disagree, so a partial or downgrading proposal fails CI. The semver-major +ignore rule, counted from the 3.6 floor, still suppresses routine 4.x +proposals; security updates remain eligible. Move the 4.x realms together by +hand after the same review. + ## Deferred proposals and reconsideration conditions | Proposal | Disposition and required evidence before reconsideration | @@ -380,7 +421,7 @@ every reactor module that pins these coordinates to have its own entry on its expected line. Plexus Utils has the same problem without that remedy. Eight plugin realms pin -4.0.3 (ten since 2026-11-30) and six pin the 3.6 line, each on the major line its plugin resolves +4.0.3 (ten, on 4.2.0, since 2026-11-30) and six pin the 3.6 line, each on the major line its plugin resolves without a pin. Dependabot PR [#274](https://github.com/OWASP/owasp-java-encoder/pull/274) proposed 3.6.2 → 3.6.4, wrote 3.6.4 into all fourteen declarations and passed CI, although that @@ -394,11 +435,11 @@ per-directory entries cannot separate them. A policy test records each realm's major line instead, so a combined proposal that crosses lines fails CI and is replaced by hand. -The 4.0.3 realms were not changed. Plexus Utils 4.2.0 carries the same fixes as +The 4.0.3 realms were not changed then. Plexus Utils 4.2.0 carries the same fixes as 3.6.3, but the semver-major ignore rule, counted from the 3.6 floor, suppresses 4.x proposals, and 4.1 changed `DirectoryScanner`'s default exclusions (see the -table above). Moving those realms is a separate review; whether any of them -reaches the affected `FileUtils` methods has not been checked. +table above). That separate review moved them to 4.2.0 on 2026-11-30; see the +entry above. The root directory monitors the complete Maven reactor once; listing each reactor module again produced duplicate pull requests. The Tomcat-only `/jsp` and diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d1f522..ccde4dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,10 @@ unchanged. [1.6.0 is available from Central](releases/1.6.0-central-publication. - 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. +- Move the ten Plexus Utils 4.x plugin-realm pins from 4.0.3 to 4.2.0, which + stops file deletion from following symbolic links out of the tree. A policy + test now rejects any pin in a known advisory range. 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/pom.xml b/jakarta-test/pom.xml index 533698a..b82ebe8 100644 --- a/jakarta-test/pom.xml +++ b/jakarta-test/pom.xml @@ -113,7 +113,7 @@ org.apache.commonscommons-lang33.22.0 org.codehaus.plexusplexus-archiver4.16.0 - org.codehaus.plexusplexus-utils4.0.3 + org.codehaus.plexusplexus-utils4.2.0 com.google.guavaguava33.8.0-jre @@ -171,7 +171,7 @@ org.apache.maven.plugins maven-clean-plugin - org.codehaus.plexusplexus-utils4.0.3 + org.codehaus.plexusplexus-utils4.2.0 @@ -191,7 +191,7 @@ maven-war-plugin org.codehaus.plexusplexus-archiver4.16.0 - org.codehaus.plexusplexus-utils4.0.3 + org.codehaus.plexusplexus-utils4.2.0 com.google.guavaguava33.8.0-jre diff --git a/pom.xml b/pom.xml index d6da13f..df46d4c 100644 --- a/pom.xml +++ b/pom.xml @@ -161,7 +161,7 @@ maven-clean-plugin 3.5.0 - org.codehaus.plexusplexus-utils4.0.3 + org.codehaus.plexusplexus-utils4.2.0 @@ -209,7 +209,7 @@ 3.3.4 - org.codehaus.plexusplexus-utils4.0.3 + org.codehaus.plexusplexus-utils4.2.0 @@ -230,7 +230,7 @@ maven-antrun-plugin 3.2.0 - org.codehaus.plexusplexus-utils4.0.3 + org.codehaus.plexusplexus-utils4.2.0 @@ -278,7 +278,7 @@ 3.4.0 org.codehaus.plexusplexus-archiver4.16.0 - org.codehaus.plexusplexus-utils4.0.3 + org.codehaus.plexusplexus-utils4.2.0 @@ -288,7 +288,7 @@ commons-beanutilscommons-beanutils1.11.0 org.codehaus.plexusplexus-archiver4.16.0 - org.codehaus.plexusplexus-utils4.0.3 + org.codehaus.plexusplexus-utils4.2.0 @@ -425,7 +425,7 @@ org.apache.commonscommons-lang33.22.0 org.codehaus.plexusplexus-archiver4.16.0 - org.codehaus.plexusplexus-utils4.0.3 + org.codehaus.plexusplexus-utils4.2.0 com.google.guavaguava33.8.0-jre @@ -583,7 +583,7 @@ 3.9.0 - org.codehaus.plexusplexus-utils4.0.3 + org.codehaus.plexusplexus-utils4.2.0 diff --git a/scripts/tests/test_ci_policy.py b/scripts/tests/test_ci_policy.py index 42f9d9f..b17dc0d 100644 --- a/scripts/tests/test_ci_policy.py +++ b/scripts/tests/test_ci_policy.py @@ -346,6 +346,7 @@ def test_plexus_utils_pins_keep_each_plugin_realm_line(self): 'spring-boot-maven-plugin': '3.', }, } + all_pins = [] for name, lines in expected.items(): pom = ET.parse(ROOT / name).getroot() pinned = {} @@ -364,6 +365,15 @@ def test_plexus_utils_pins_keep_each_plugin_realm_line(self): with self.subTest(pom=name, plugin=artifact): self.assertTrue(pinned[artifact].startswith(line), pinned[artifact]) + # GHSA-6fmv-xxpf-w3cw affects < 3.6.1 and 4.0.0-4.0.2. + floor = (3, 6, 1) if line == '3.' else (4, 0, 3) + self.assertGreaterEqual( + tuple(int(n) for n in pinned[artifact].split('.')), floor) + all_pins.extend(pinned.values()) + # Each major line moves as one reviewed version, never piecemeal. + for line in ('3.', '4.'): + self.assertEqual(1, len({v for v in all_pins if v.startswith(line)}), + sorted(all_pins)) def test_only_executed_plugins_are_submitted(self): workflow = (ROOT / '.github/workflows/dependency-submission.yaml').read_text()