CVE-2026-84292

fast-uri serializes the port component of a URI without validating it. When recomposing the authority, the userinfo and host components are escaped but the port is concatenated verbatim, so a port value that is not a sequence of digits can inject authority delimiters, demoting the intended host to userinfo and pointing the authority at an attacker-controlled host. Both fast-uri and Node's URL read the result back as the attacker's host with no error, so re-validating the built URI does not catch it. This affects applications that build URIs from parts and assign untrusted data to the port component through the serialize, normalize, or equal functions in their object forms. The issue affects fast-uri versions before 2.4.6, from 3.0.0 before 3.1.7, and from 4.0.0 before 4.1.4. It is fixed in 2.4.6, 3.1.7, and 4.1.4, where recomposeAuthority rejects any port that is not a digit sequence per RFC 3986.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:openjsf:fast-uri:*:*:*:*:*:node.js:*:*
cpe:2.3:a:openjsf:fast-uri:*:*:*:*:*:node.js:*:*
cpe:2.3:a:openjsf:fast-uri:*:*:*:*:*:node.js:*:*

History

28 Sep 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) fast-uri serializa el componente de puerto de una URI sin validarlo. Al recomponer la autoridad, los componentes userinfo y host se escapan, pero el puerto se concatena textualmente, por lo que un valor de puerto que no es una secuencia de dígitos puede inyectar delimitadores de autoridad, degradando el host previsto a userinfo y apuntando la autoridad a un host controlado por el atacante. Tanto fast-uri como la URL de Node leen el resultado como el host del atacante sin error, por lo que revalidar la URI construida no lo detecta. Esto afecta a las aplicaciones que construyen URIs a partir de partes y asignan datos no confiables al componente de puerto a través de las funciones serialize, normalize o equal en sus formas de objeto. El problema afecta a las versiones de fast-uri anteriores a la 2.4.6, desde la 3.0.0 anteriores a la 3.1.7, y desde la 4.0.0 anteriores a la 4.1.4. Se ha corregido en la 2.4.6, la 3.1.7 y la 4.1.4, donde recomposeAuthority rechaza cualquier puerto que no sea una secuencia de dígitos según la RFC 3986.

Information

Published : 2026-09-02 20:17

Updated : 2026-10-06 22:10


NVD link : CVE-2026-84292

Mitre link : CVE-2026-84292

CVE.ORG link : CVE-2026-84292


JSON object : View

Products Affected

openjsf

  • fast-uri
CWE
CWE-116

Improper Encoding or Escaping of Output