Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXFtdzgtM3Y0Zy1nd2o0
Prefix escape
Impact
By crafting a specific URL, it is possible to escape the prefix of the proxied backend service.
If the base url of the proxied server is /pub/
, a user expect that accessing /priv
on the target service would not be possible. Unfortunately, it is.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Patches
A patch have been submitted by Corey Farrell [email protected], the reporter.
All releases after v4.0.2 include the fix.
Workarounds
There are no workaround available.
For more information
If you have any questions or comments about this advisory:
- Open an issue in fastify-reply-from
- Email us at [email protected]
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXFtdzgtM3Y0Zy1nd2o0
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: about 3 years ago
Updated: over 1 year ago
CVSS Score: 10.0
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Identifiers: GHSA-qmw8-3v4g-gwj4, CVE-2021-21321
References:
- https://github.com/fastify/fastify-reply-from/security/advisories/GHSA-qmw8-3v4g-gwj4
- https://github.com/fastify/fastify-reply-from/commit/dea227dda606900cc01870d08541b4dcc69d3889
- https://www.npmjs.com/package/fastify-reply-from
- https://nvd.nist.gov/vuln/detail/CVE-2021-21321
- https://github.com/advisories/GHSA-qmw8-3v4g-gwj4
Blast Radius: 23.2
Affected Packages
npm:fastify-reply-from
Dependent packages: 17Dependent repositories: 208
Downloads: 22,963 last month
Affected Version Ranges: < 4.0.2
Fixed in: 4.0.2
All affected versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.5.4, 0.6.0, 0.6.1, 0.6.2, 1.0.0, 1.1.0, 2.0.0, 2.0.1, 2.1.0, 2.2.0, 3.0.0, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.2.0, 3.3.0, 3.4.0, 3.5.0, 4.0.0, 4.0.1
All unaffected versions: 4.0.2, 5.0.0, 5.0.1, 5.0.2, 5.1.0, 5.2.0, 5.3.0, 6.0.0, 6.0.1, 6.1.0, 6.2.0, 6.3.0, 6.4.0, 6.4.1, 6.4.2, 6.4.3, 6.5.0, 6.6.0, 6.7.0