GHSA-4x7w-frcq-v4m3 Path Traversal in @wturyn/swagger-injector

Not scored Published

Attackers can read server files outside the configured directory due to unsanitized URLs in the swagger-injector npm package.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is GHSA-4x7w-frcq-v4m3?

GHSA-4x7w-frcq-v4m3 is a path traversal vulnerability in @wturyn/swagger-injector, published on 3 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

All versions of @wturyn/swagger-injector are vulnerable to Path Traversal. The package fails to sanitize URLs, allowing attackers to access server files outside of the configured dist folder using relative paths.

Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

Which versions are affected by GHSA-4x7w-frcq-v4m3?

2 open source packages ship an affected version, including @wturyn/swagger-injector.

PackageAffectedFixed in
@wturyn/swagger-injector npmFrom 0.0.0None
@wturyn/swagger-injector npmFrom 0.0.0None

How do I fix GHSA-4x7w-frcq-v4m3?

No fix has been published for GHSA-4x7w-frcq-v4m3 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is GHSA-4x7w-frcq-v4m3 being exploited?

There is no known exploitation of GHSA-4x7w-frcq-v4m3 in the wild and no public exploit code.

Sources

Is GHSA-4x7w-frcq-v4m3 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free