Packages / semantic-release / Security

ModerateVulnerabilityGHSA-x2pg-mjhr-2m5xCVE-2022-31051Published 9 Jun 2022

Exposure of Sensitive Information to an Unauthorized Actor in semantic-release

Your version

Affected releases · semantic-release

  • 19.x19.0.0 – 19.0.2Fixed in 19.0.3
  • 18.x and older17.0.4 – 18.0.1No fix, no longer updated

On 19.x, the newest line:

npm install semantic-release@19.0.3
Every release on a timeline
26.x
  1. Not affected

    26.0.0 – 26.0.1

    2 releases, latest

19.x
  1. Affected

    19.0.0 – 19.0.2

    3 releases

  2. Fixed

    19.0.3 – 19.0.5

    3 releases

18.x
  1. Affected

    18.0.0 – 18.0.1

    2 releases

17.x
  1. Not affected

    17.0.0 – 17.0.3

    4 releases

  2. Affected

    17.0.4 – 17.4.7

    31 releases

352 stable releases of semantic-release, oldest to newest, one row per major.

What happens

Impact

What kind of vulnerability is it? Who is impacted?

Secrets that would normally be masked by semantic-release can be accidentally disclosed if they contain characters that are excluded from uri encoding by encodeURI. Occurrence is further limited to execution contexts where push access to the related repository is not available without modifying the repository url to inject credentials.

Patches

Has the problem been patched? What versions should users upgrade to?

Fixed in 19.0.3

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

Secrets that do not contain characters that are excluded from encoding with encodeURI when included in a URL are already masked properly.

References

Are there any links users can visit to find out more?

For more information

If you have any questions or comments about this advisory:

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.