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
51 changes: 46 additions & 5 deletions .github/DEPENDENCY_DECISIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 `<arg value>`, 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 |
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions jakarta-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
</dependency>
<dependency><groupId>org.apache.commons</groupId><artifactId>commons-lang3</artifactId><version>3.22.0</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-archiver</artifactId><version>4.16.0</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.0.3</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.2.0</version></dependency>
<!-- GHSA-xxph-c9ww-hj94, GHSA-v5x9-67m3-7m56: Checkstyle 12.3.1 brings Guava 33.5.0. -->
<dependency><groupId>com.google.guava</groupId><artifactId>guava</artifactId><version>33.8.0-jre</version></dependency>
</dependencies>
Expand Down Expand Up @@ -171,7 +171,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<dependencies>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.0.3</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.2.0</version></dependency>
</dependencies>
</plugin>
<plugin>
Expand All @@ -191,7 +191,7 @@
<artifactId>maven-war-plugin</artifactId>
<dependencies>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-archiver</artifactId><version>4.16.0</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.0.3</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.2.0</version></dependency>
<!-- GHSA-xxph-c9ww-hj94, GHSA-v5x9-67m3-7m56: the WAR plugin's Guice brings Guava 33.4.8. -->
<dependency><groupId>com.google.guava</groupId><artifactId>guava</artifactId><version>33.8.0-jre</version></dependency>
</dependencies>
Expand Down
14 changes: 7 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
<artifactId>maven-clean-plugin</artifactId>
<version>3.5.0</version>
<dependencies>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.0.3</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.2.0</version></dependency>
</dependencies>
</plugin>
<plugin>
Expand Down Expand Up @@ -209,7 +209,7 @@
<version>3.3.4</version>
<dependencies>
<!-- GHSA-6fmv-xxpf-w3cw: the wrapper plugin brings Plexus Utils 4.0.2. -->
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.0.3</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.2.0</version></dependency>
</dependencies>
</plugin>
<plugin>
Expand All @@ -230,7 +230,7 @@
<artifactId>maven-antrun-plugin</artifactId>
<version>3.2.0</version>
<dependencies>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.0.3</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.2.0</version></dependency>
</dependencies>
<executions>
<execution>
Expand Down Expand Up @@ -278,7 +278,7 @@
<version>3.4.0</version>
<dependencies>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-archiver</artifactId><version>4.16.0</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.0.3</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.2.0</version></dependency>
</dependencies>
</plugin>
<plugin>
Expand All @@ -288,7 +288,7 @@
<dependencies>
<dependency><groupId>commons-beanutils</groupId><artifactId>commons-beanutils</artifactId><version>1.11.0</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-archiver</artifactId><version>4.16.0</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.0.3</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.2.0</version></dependency>
</dependencies>
</plugin>
<plugin>
Expand Down Expand Up @@ -425,7 +425,7 @@
</dependency>
<dependency><groupId>org.apache.commons</groupId><artifactId>commons-lang3</artifactId><version>3.22.0</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-archiver</artifactId><version>4.16.0</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.0.3</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.2.0</version></dependency>
<!-- GHSA-xxph-c9ww-hj94, GHSA-v5x9-67m3-7m56: Checkstyle 12.3.1 brings Guava 33.5.0. -->
<dependency><groupId>com.google.guava</groupId><artifactId>guava</artifactId><version>33.8.0-jre</version></dependency>
</dependencies>
Expand Down Expand Up @@ -583,7 +583,7 @@
<version>3.9.0</version>
<dependencies>
<!-- GHSA-6fmv-xxpf-w3cw: Build Helper 3.9.0 brings Plexus Utils 4.0.2 through file-management. -->
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.0.3</version></dependency>
<dependency><groupId>org.codehaus.plexus</groupId><artifactId>plexus-utils</artifactId><version>4.2.0</version></dependency>
</dependencies>
<executions>
<execution>
Expand Down
10 changes: 10 additions & 0 deletions scripts/tests/test_ci_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand All @@ -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()
Expand Down