Skip to content

Bump christian-riesen/base32 from 1.6.1 to 2.0.1 in /lam - #753

Open
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/composer/lam/christian-riesen/base32-2.0.1
Open

Bump christian-riesen/base32 from 1.6.1 to 2.0.1 in /lam#753
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/composer/lam/christian-riesen/base32-2.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 13, 2026

Copy link
Copy Markdown
Contributor

Bumps christian-riesen/base32 from 1.6.1 to 2.0.1.

Release notes

Sourced from christian-riesen/base32's releases.

2.0.1

Due to a mistake, needed to retag this release.

2.0.0 BC Break Stricter Checking

This release brings the library into the present with a 8.1 PHP requirement, some upgraded requirements in general and a stricter checking. Look at the changelog for more details.

Changelog

Sourced from christian-riesen/base32's changelog.

Changelog

2.0.0 (unreleased)

Backward-incompatible: PHP 8.1+ required

The minimum supported PHP version is now 8.1. If you need to run on PHP 7.2 – 8.0, stay on the 1.x release line.

Backward-incompatible: strict, RFC 4648-conformant decoding

Base32::decode() and Base32Hex::decode() now reject malformed input instead of silently sanitizing it. This resolves Trail of Bits finding TOB-WIKI2FA-5 (Wikimedia Foundation 2FA review).

Previously the decoder uppercased the input and stripped every character that was not in the alphabet — including padding — which violated RFC 4648 §3.3 ("Implementations MUST reject the encoded data if it contains characters outside the base alphabet") and allowed non-canonical values to decode.

decode() now throws \InvalidArgumentException when the input:

  • has a length that is not a multiple of 8 (padding is required, RFC 4648 §3.2);
  • contains any character outside the alphabet (RFC 4648 §3.3);
  • contains misplaced or an invalid number of = padding characters;
  • is not uppercase — decoding is now case-sensitive (RFC 4648 uses the uppercase alphabet). Lowercase input is no longer accepted.
  • contains non-zero trailing bits, i.e. a non-canonical encoding (RFC 4648 §3.5).

An empty string still decodes to an empty string. encode() is unchanged; it was already conformant, so any string produced by encode() still round-trips.

Migration: if you pass user-supplied Base32 (for example TOTP secrets that may be lowercase or grouped with spaces), normalize it before decoding:

$secret = strtoupper(preg_replace('/\s+/', '', $userInput));
$bytes  = Base32::decode($secret); // throws on anything still invalid

Removed

  • The BASE32HEX_PATTERN protected constant (was misnamed — it held the standard Base32 pattern, not the extended-hex one) and the '=' entry in the MAPPING constant. Both were implementation details of the old lenient decoder and are no longer used.
Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Jul 13, 2026
@deepsource-io

deepsource-io Bot commented Jul 13, 2026

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 75193e5...77d935a on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
PHP Jul 27, 2026 6:30p.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

@dependabot
dependabot Bot force-pushed the dependabot/composer/lam/christian-riesen/base32-2.0.1 branch from d8c975b to b132caf Compare July 23, 2026 17:39
Bumps [christian-riesen/base32](https://github.com/ChristianRiesen/base32) from 1.6.1 to 2.0.1.
- [Release notes](https://github.com/ChristianRiesen/base32/releases)
- [Changelog](https://github.com/ChristianRiesen/base32/blob/master/CHANGELOG.md)
- [Commits](ChristianRiesen/base32@1.6.1...2.0.1)

---
updated-dependencies:
- dependency-name: christian-riesen/base32
  dependency-version: 2.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title Bump christian-riesen/base32 from 1.6.0 to 2.0.1 in /lam Bump christian-riesen/base32 from 1.6.1 to 2.0.1 in /lam Jul 27, 2026
@dependabot
dependabot Bot force-pushed the dependabot/composer/lam/christian-riesen/base32-2.0.1 branch from b132caf to 77d935a Compare July 27, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants