diff --git a/.github/DEPENDENCY_DECISIONS.md b/.github/DEPENDENCY_DECISIONS.md index 7a93184..cc34e74 100644 --- a/.github/DEPENDENCY_DECISIONS.md +++ b/.github/DEPENDENCY_DECISIONS.md @@ -219,7 +219,7 @@ have not run under 3.10.2 and need to before the next release; see the | Proposal | Disposition and required evidence before reconsideration | | --- | --- | | Checkstyle 12.3.1 → 14.1.0 | Keep 12.3.1 for the JDK 17 build. PR #188 fails with Java 21 classfile version 65 on Java 17. Reconsider with a separately reviewed build/release-JDK migration and source-policy validation; this is not a claim that the old engine has upstream support. | -| Plexus Utils 3.6.2 → 4.1.0 in GPG/Central plugin dependencies | Keep the reviewed 3.6.2 mitigation. The [upstream 4.x migration](https://github.com/codehaus-plexus/plexus-utils) moves XML utilities to a separate artifact; 4.1 also changes DirectoryScanner default exclusions. A newer major is not a drop-in plugin-realm security fix. Reconsider with actual plugin linkage, isolated signing/bundle/rehearsal evidence, transitive-advisory review and repeatable payloads. | +| Plexus Utils 3.6.2 → 4.1.0 in GPG/Central plugin dependencies | Keep the reviewed 3.6 mitigation, at 3.6.4 since 2026-11-23. The [upstream 4.x migration](https://github.com/codehaus-plexus/plexus-utils) moves XML utilities to a separate artifact; 4.1 also changes DirectoryScanner default exclusions. A newer major is not a drop-in plugin-realm security fix. Reconsider with actual plugin linkage, isolated signing/bundle/rehearsal evidence, transitive-advisory review and repeatable payloads. | | javax Servlet 3.0.1 → 4.0.1; EL 2.2.5 → 3.0.0 | Keep the test-only minimum API fixtures. These are not bundled production container implementations. Modern engine coverage is separate; replacing the minimum tests would remove evidence for existing consumers. | | Jakarta Pages 3.0.0 → 4.0.0 | Keep the published provided Pages 3 API and existing `[3.0,4)` package ranges. Reconsider only with a reviewed minimum-runtime/API migration, public POM implications and compatibility evidence. | | Jasper/annotations 9.0.122 or 10.1.60 → 11.0.26 in the isolated tag fixtures | Keep coherent Tomcat 9 (`javax`) and 10.1 (`jakarta`) engines. PR #188 fails the javax engine with missing `javax.servlet.jsp.tagext.SimpleTagSupport` after the Tomcat 11 switch. The optional Boot/browser WAR already exercises Tomcat 11. Patch updates within each engine line come from the separate `/jsp` and `/jakarta` Dependabot entries described below. Cross-line migration needs a separate coverage decision. | @@ -296,6 +296,27 @@ the engine, so security updates remain eligible there. A policy test requires 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 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 +moves the 4.0.3 realms back to the 3.x line. A separate change applied 3.6.4 to +the six 3.6 realms only: Resources, JaCoCo, GPG and the Central publisher in +the root build, and Resources and the Boot plugin in the Jakarta fixture. 3.6.3 +and 3.6.4 are bugfix releases with no advisory. They stop `FileUtils` deletes +from following symbolic links, split `translateCommandline` input at tabs and +line breaks, and fix an `MXParser` crash. Both lines live in the same POMs, so +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 +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. + The root directory monitors the complete Maven reactor once; listing each reactor module again produced duplicate pull requests. The Tomcat-only `/jsp` and `/jakarta` entries do not duplicate it because the root entry ignores everything diff --git a/RELEASING.md b/RELEASING.md index 83f7f5d..fe2fbd9 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -229,16 +229,18 @@ claimed without a separate comparison. Signatures contain signing-time data and are verified separately from the deterministic unsigned payload. Never rebuild or replace the retained 1.4.1 release to retrofit reproducibility. -The publisher's isolated dependencies override Jackson core/databind 2.22.3 and -annotations 2.22, HttpClient 5.6.5 and HttpCore/httpcore5-h2 5.4.4. The upstream +The publisher's isolated dependencies override Jackson core/databind and +annotations, now at 2.23.0 and 2.23, HttpClient 5.6.5 and HttpCore/httpcore5-h2 +5.4.4. The upstream 0.11.0 dependency versions matched OSV advisories in the dated [September validation](docs/archive/maintenance-2026-09/batch-04-validation.md#release-plugin-dependency-follow-up-187). That check used HttpClient 5.6.4; the current 5.6.5 pin arrived later and is not covered by that historical advisory result. The 2026-10-20 publisher update compared the published 0.11.0 and 0.12.0 direct dependency declarations, which are unchanged, and retained all seven existing overrides. The isolated 0.12.0 -bundle-only fixture resolved those exact overrides and excluded Maven 3.10 -bookkeeping files from its ZIP. This was a linkage/bundling check, not a new +bundle-only fixture resolved those overrides as they stood then, with Jackson +2.22.3 and annotations 2.22, and excluded Maven 3.10 bookkeeping files from its +ZIP. This was a linkage/bundling check, not a new advisory scan or a signed release rehearsal. Local signed bundle validation exercises the overridden plugin. This is not an audit of every plugin dependency or a claim that the plugin's live Central HTTP path has been tested. Jim's Portal @@ -250,9 +252,11 @@ install/deploy goals skip. The signing plugin also pins `bcpg-jdk18on`, `bcprov-jdk18on`, and -`bcutil-jdk18on` to 1.86; both release plugins pin Plexus Utils to the compatible -3.6.2 line. The full resolved signing/publishing closure was checked after -these additions, separately from application/runtime dependencies. Validation -covers both the default GnuPG signer and the optional Bouncy Castle signer with -a disposable local key; the project release key and preferred GnuPG path remain -unchanged. See the batch 04 validation record for dated results. +`bcutil-jdk18on`, now at 1.87; both release plugins pin Plexus Utils on the +compatible 3.6 line, now at 3.6.4. The full resolved signing/publishing closure +was checked when these pins were added at 1.86 and 3.6.2, separately from +application/runtime dependencies. Validation covers both the default GnuPG +signer and the optional Bouncy Castle signer with a disposable local key; the +project release key and preferred GnuPG path remain unchanged. See the batch 04 +validation record for dated results. The later releases were resolved in the +release plugin closure; that record does not cover a signing run with them. diff --git a/jakarta-test/pom.xml b/jakarta-test/pom.xml index c60939a..6f70996 100644 --- a/jakarta-test/pom.xml +++ b/jakarta-test/pom.xml @@ -187,7 +187,7 @@ org.apache.maven.plugins maven-resources-plugin - org.codehaus.plexusplexus-utils3.6.2 + org.codehaus.plexusplexus-utils3.6.4 @@ -218,7 +218,7 @@ spring-boot-maven-plugin org.apache.commonscommons-lang33.22.0 - org.codehaus.plexusplexus-utils3.6.2 + org.codehaus.plexusplexus-utils3.6.4 org.owasp.encoder.testing.jakarta_test.JakartaTestApplication diff --git a/pom.xml b/pom.xml index 10ccbc7..fbe2388 100644 --- a/pom.xml +++ b/pom.xml @@ -169,7 +169,7 @@ maven-resources-plugin 3.5.0 - org.codehaus.plexusplexus-utils3.6.2 + org.codehaus.plexusplexus-utils3.6.4 @@ -292,7 +292,7 @@ jacoco-maven-plugin 0.8.16 - org.codehaus.plexusplexus-utils3.6.2 + org.codehaus.plexusplexus-utils3.6.4 @@ -314,7 +314,7 @@ org.bouncycastlebcpg-jdk18on1.87 org.bouncycastlebcprov-jdk18on1.87 org.bouncycastlebcutil-jdk18on1.87 - org.codehaus.plexusplexus-utils3.6.2 + org.codehaus.plexusplexus-utils3.6.4 @@ -661,7 +661,7 @@ true - org.codehaus.plexusplexus-utils3.6.2 + org.codehaus.plexusplexus-utils3.6.4 com.fasterxml.jackson.corejackson-databind2.23.0 com.fasterxml.jackson.corejackson-core2.23.0 com.fasterxml.jackson.corejackson-annotations2.23 diff --git a/scripts/tests/test_ci_policy.py b/scripts/tests/test_ci_policy.py index f965333..3b6f165 100644 --- a/scripts/tests/test_ci_policy.py +++ b/scripts/tests/test_ci_policy.py @@ -315,6 +315,50 @@ def test_dependabot_scans_each_tomcat_engine_line_separately(self): next(iter(versions)).startswith(expected_lines[directory]), versions) + def test_plexus_utils_pins_keep_each_plugin_realm_line(self): + # Dependabot combines every plexus-utils declaration and writes one + # version into all of them. #274 proposed 3.6.2 -> 3.6.4, moved the + # 4.0 realms back to 3.6.4 and still passed CI. Each realm keeps the + # major line its plugin resolves without a pin. + expected = { + 'pom.xml': { + 'maven-clean-plugin': '4.', + 'maven-resources-plugin': '3.', + 'maven-antrun-plugin': '4.', + 'maven-source-plugin': '4.', + 'maven-javadoc-plugin': '4.', + 'jacoco-maven-plugin': '3.', + 'maven-gpg-plugin': '3.', + 'maven-checkstyle-plugin': '4.', + 'central-publishing-maven-plugin': '3.', + }, + 'jakarta-test/pom.xml': { + 'maven-checkstyle-plugin': '4.', + 'maven-clean-plugin': '4.', + 'maven-resources-plugin': '3.', + 'maven-war-plugin': '4.', + 'spring-boot-maven-plugin': '3.', + }, + } + for name, lines in expected.items(): + pom = ET.parse(ROOT / name).getroot() + pinned = {} + for plugin in pom.iter('{%s}plugin' % version.NS['p']): + for dependency in plugin.findall('p:dependencies/p:dependency', + version.NS): + if dependency.findtext( + 'p:artifactId', namespaces=version.NS) != 'plexus-utils': + continue + artifact = plugin.findtext('p:artifactId', namespaces=version.NS) + self.assertNotIn(artifact, pinned, name) + pinned[artifact] = dependency.findtext( + 'p:version', namespaces=version.NS) + self.assertEqual(set(lines), set(pinned), name) + for artifact, line in lines.items(): + with self.subTest(pom=name, plugin=artifact): + self.assertTrue(pinned[artifact].startswith(line), + pinned[artifact]) + def test_only_executed_plugins_are_submitted(self): workflow = (ROOT / '.github/workflows/dependency-submission.yaml').read_text() self.assertIn('-DincludeArtifactIds=', workflow)