Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
fast-uri vulnerable to authority injection via an unvalidated port in serialize
Vulnerability Description
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.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Vulnerability Type
对输出编码和转义不恰当
Vulnerability Title
Fastify fast-uri 输出处理不当漏洞
Vulnerability Description
Fastify fast-uri是Fastify团队的一个URI解析工具。 Fastify fast-uri 2.4.6之前版本、3.0.0至3.1.7之前版本和4.0.0至4.1.4之前版本存在输出处理不当漏洞,该漏洞源于fast-uri在序列化URI的端口组件时未进行有效性验证,导致非数字端口值可注入authority分隔符,将预期主机指向攻击者控制的主机。
CVSS Information
N/A
Vulnerability Type
N/A