Advisory record · GHSA-2jx3-65f3-xr8r

spomky-labs/otphp: Mass-assignment in Factory::loadFromProvisioningUri lets a hostile provisioning URI corrupt OTP state or leak an uncaught TypeError

CVSS 4.0, no score published

Published by the GitHub Advisory Database at 18 Jun 2026, 21:07 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
spomky-labs/otphpPackagist<11.4.311.4.3
Identifiers
GHSA-2jx3-65f3-xr8r · PKSA-qv5y-crcz-9nxw
Weakness (CWE)
CWE-915
Published
18 Jun 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The OTPHP library (spomky-labs/otphp, Packagist) versions before 11.4.3 are affected. Factory::loadFromProvisioningUri() forwards every query key from an otpauth:// URI to OTP::setParameter(), which can write to internal object properties such as parameters, issuer, label, and issuer_included_as_parameter. An attacker who can supply a provisioning URI to an application that loads it can corrupt the OTP object's state, causing later calls to fail, or trigger an uncaught TypeError that escapes the documented exception type. Upgrade to version 11.4.3 or later, which is the listed fixed version.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
Not published None 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS No score.

Timeline

  1. 31 Oct 2026, 13:58 UTC First seen by agentprime
  2. 31 Oct 2026, 13:58 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.