Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion .github/DEPENDENCY_DECISIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down Expand Up @@ -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
Expand Down
24 changes: 14 additions & 10 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
4 changes: 2 additions & 2 deletions jakarta-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<dependencies>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>3.6.2</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>3.6.4</version></dependency>
</dependencies>
</plugin>
<plugin>
Expand Down Expand Up @@ -218,7 +218,7 @@
<artifactId>spring-boot-maven-plugin</artifactId>
<dependencies>
<dependency><groupId>org.apache.commons</groupId><artifactId>commons-lang3</artifactId><version>3.22.0</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>3.6.2</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>3.6.4</version></dependency>
</dependencies>
<configuration>
<mainClass>org.owasp.encoder.testing.jakarta_test.JakartaTestApplication</mainClass>
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
<artifactId>maven-resources-plugin</artifactId>
<version>3.5.0</version>
<dependencies>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>3.6.2</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>3.6.4</version></dependency>
</dependencies>
</plugin>
<plugin>
Expand Down Expand Up @@ -292,7 +292,7 @@
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.16</version>
<dependencies>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>3.6.2</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>3.6.4</version></dependency>
</dependencies>
</plugin>
<plugin>
Expand All @@ -314,7 +314,7 @@
<dependency><groupId>org.bouncycastle</groupId><artifactId>bcpg-jdk18on</artifactId><version>1.87</version></dependency>
<dependency><groupId>org.bouncycastle</groupId><artifactId>bcprov-jdk18on</artifactId><version>1.87</version></dependency>
<dependency><groupId>org.bouncycastle</groupId><artifactId>bcutil-jdk18on</artifactId><version>1.87</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>3.6.2</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>3.6.4</version></dependency>
</dependencies>
</plugin>
<plugin>
Expand Down Expand Up @@ -661,7 +661,7 @@
<extensions>true</extensions>
<!-- Mitigate reviewed upstream publisher dependencies; isolated plugin realm only. -->
<dependencies>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>3.6.2</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>3.6.4</version></dependency>
<dependency><groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-databind</artifactId><version>2.23.0</version></dependency>
<dependency><groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-core</artifactId><version>2.23.0</version></dependency>
<dependency><groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-annotations</artifactId><version>2.23</version></dependency>
Expand Down
44 changes: 44 additions & 0 deletions scripts/tests/test_ci_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading