{"id":"CVE-2022-31051","aliases":["CVE-2022-31051","GHSA-x2pg-mjhr-2m5x"],"related":[],"kind":"vulnerability","state":"published","title":"Exposure of Sensitive Information to an Unauthorized Actor in semantic-release","summary":"semantic-release is an open source npm package for automated version management and package publishing. In affected versions 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. Users are advised to upgrade. Users unable to upgrade should ensure that secrets that do not contain characters that are excluded from encoding with `encodeURI` when included in a URL are already masked properly.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"semantic-release is an open source npm package for automated version management and package publishing. In affected versions 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. Users are advised to upgrade. Users unable to upgrade should ensure that secrets that do not contain characters that are excluded from encoding with `encodeURI` when included in a URL are already masked properly.","source":"cvelist"},{"lang":"en","text":"### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nSecrets that would normally be masked by semantic-release can be accidentally disclosed if they contain characters that are excluded from uri encoding by [encodeURI](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/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.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nFixed in 19.0.3\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nSecrets that do not contain characters that are excluded from encoding with `encodeURI` when included in a URL are already masked properly.\n\n### References\n_Are there any links users can visit to find out more?_\n* https://github.com/semantic-release/semantic-release/releases/tag/v19.0.3\n* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open a discussion in [semantic-release discussions](https://github.com/semantic-release/semantic-release/discussions)","format":"markdown","source":"ghsa"},{"lang":"es","text":"semantic-release es un paquete npm de código abierto para la administración automatizada de versiones y la publicación de paquetes. En versiones afectadas, los secretos que normalmente estarían enmascarados por semantic-release pueden ser revelados accidentalmente si contienen caracteres que están excluidos de la codificación uri por \"encodeURI\". La ocurrencia es limitada además a contextos de ejecución en los que el acceso push al repositorio relacionado no está disponible sin modificar la url del repositorio para inyectar credenciales. Es recomendado a usuarios actualizar. Los usuarios que no puedan actualizar deben asegurarse de que los secretos que no contengan caracteres excluidos de la codificación con \"encodeURI\" cuando sean incluidos en una URL ya estén enmascarados correctamente","source":"nvd"}],"published":"2022-06-09T20:05:12.000Z","modified":"2026-06-17T04:44:41.470Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-200"],"affected":[{"ranges":[{"version":">= 17.0.4, < 19.0.3","status":"affected"}],"vendor":"semantic-release","product":"semantic-release","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"17.0.4","status":"affected","fixed":"19.0.3"}],"ecosystem":"npm","package":"semantic-release","purl":"pkg:npm/semantic-release","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"17.0.4","fixed":"19.0.3"}],"vendor":"semantic-release_project","product":"semantic-release","cpe":"cpe:2.3:a:semantic-release_project:semantic-release:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/semantic-release/semantic-release/security/advisories/GHSA-x2pg-mjhr-2m5x","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/semantic-release/semantic-release/commit/58a226f29c04ee56bbb02cc661f020d568849cad","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/semantic-release/semantic-release/releases/tag/v19.0.3","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31051","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/semantic-release/semantic-release/pull/2449","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/semantic-release/semantic-release/pull/2459","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/semantic-release/semantic-release","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T14:05:40.355Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-31051","url":"https://www.cve.org/CVERecord?id=CVE-2022-31051","licence":"CVE Terms of Use","modified":"2025-04-23T18:17:20.711Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x2pg-mjhr-2m5x","url":"https://github.com/advisories/GHSA-x2pg-mjhr-2m5x","licence":"CC-BY-4.0","modified":"2023-11-08T04:09:24.253Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-31051","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31051","licence":"Public domain","modified":"2026-06-17T04:44:41.470Z"}],"updatedAt":"2026-11-25T22:58:12.206Z","epss":{"score":0.01798,"percentile":0.79112,"date":"2026-12-01T12:00:22.000Z"}}