Skip to content

[APS-19435] fix: bump commons-io 1.3.2 -> 2.18.0 (CVE-2021-29425) - #20

Open
Rohannagariya1 wants to merge 1 commit into
browserstack:mainfrom
Rohannagariya1:fix/APS-19435-commons-io-bump
Open

Rohannagariya1 wants to merge 1 commit into
browserstack:mainfrom
Rohannagariya1:fix/APS-19435-commons-io-bump

Conversation

@Rohannagariya1

Copy link
Copy Markdown

Security Fix: APS-19435

Issue

build.gradle:9 declared commons-io:commons-io:1.3.2, which carries CVE-2021-29425 (CWE-22, path traversal in FilenameUtils.normalize on commons-io < 2.7). Severity Low — the verifier flagged it as a declared-only dependency with no confirmed call sites.

Root Cause

A very old (2008-era) commons-io 1.3.2 pinned on the compile classpath.

Fix Applied

One-line bump:

- implementation 'commons-io:commons-io:1.3.2'
+ implementation 'commons-io:commons-io:2.18.0'

2.18.0 is a current stable 2.x (Maven Central latest is 2.22.0) and well past the patched 2.7. Verified the version exists on Maven Central (commons-io-2.18.0.pom -> HTTP 200).

Reachability / safety

Independently confirmed there are no commons-io / FilenameUtils / FileUtils / IOUtils references anywhere under src/ (only three test classes, none import commons-io). The dependency is declared-only, so the major-version bump is statically safe — no used API surface changes between 1.3.2 and 2.18.0 in this repo.

Testing

  • Maven Central version verification: PASS (2.18.0 resolves).
  • Source-level reachability scan: PASS (zero call sites).
  • BLOCKED(no-gradle): this repo ships no Gradle wrapper (gradlew) and no system gradle is available in the environment, so ./gradlew dependencies --configuration compileClasspath and the sample test could not be executed here. The change is statically safe per the above; recommend CI/maintainer run ./gradlew dependencies | grep commons-io to confirm 2.18.0 resolves and no transitive re-introduces 1.3.2.

Jira Ticket

https://browserstack.atlassian.net/browse/APS-19435

Checklist

  • Security issue addressed (CVE-2021-29425 cleared)
  • Version verified on Maven Central
  • Declared-only / no call sites confirmed
  • Gradle dependency resolution (BLOCKED — no gradle/gradlew in env)
- Clears CVE-2021-29425 (CWE-22 path traversal in FilenameUtils.normalize,
  affecting commons-io < 2.7). 2.18.0 is well past the patched 2.7.
- Declared-only dependency: no FilenameUtils/FileUtils/IOUtils call sites
  in src/, so the bump is statically safe (no API surface changes used).

Resolves: APS-19435

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Rohannagariya1
Rohannagariya1 requested a review from a team as a code owner June 11, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant