CVE-2021-21423 Exposure of Version-Control Repository to an Unauthorized Control Sphere in projen
- Published
- Updated
- Exploit status
- No public exploit known
Description
projen is a project generation tool that synthesizes project configuration files such as package.json, tsconfig.json, .gitignore, GitHub Workflows, eslint, jest, and more, from a well-typed definition written in JavaScript. Users of projen's NodeProject project type (including any project type derived from it) include a .github/workflows/rebuild-bot.yml workflow that may allow any GitHub user to trigger execution of un-trusted code in the context of the "main" repository (as opposed to that of a fork). In some situations, such untrusted code may potentially be able to commit to the "main" repository. The rebuild-bot workflow is triggered by comments including @projen rebuild on pull-request to trigger a re-build of the projen project, and updating the pull request with the updated files. This workflow is triggered by an issue_comment event, and thus always executes with a GITHUB_TOKEN belonging to the repository into which the pull-request is made (this is in contrast with workflows triggered by pull_request events, which always execute with a GITHUB_TOKEN belonging to the repository from which the pull-request is made). Repositories that do not have branch protection configured on their default branch (typically main or master) could possibly allow an untrusted user to gain access to secrets configured on the repository (such as NPM tokens, etc). Branch protection prohibits this escalation, as the managed GITHUB_TOKEN would not be able to modify the contents of a protected branch and affected workflows must be defined on the default branch.
Upgrade path
4 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm projen(npm) | >= 0.6.0, < 0.16.41 | 0.16.41 | Fixed |
| projen project projen | >= 0.6.0, < 0.16.41 | 0.16.41 | Fixed |
| pypi projen(PyPI) | < 0.16.41; = 0.14.0; = 0.14.1; = 0.14.2 +67 more | 0.16.41 | Fixed |
| projen | = >= 0.6.0, < 0.16.41 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm projen(npm) | >= 0.6.0, < 0.16.41 | 0.16.41 |
| pypi projen(PyPI) | < 0.16.41 | 0.16.41 |
| pypi projen(PyPI) | = 0.14.0 | No fix listed |
| pypi projen(PyPI) | = 0.14.1 | No fix listed |
| pypi projen(PyPI) | = 0.14.10 | No fix listed |
| pypi projen(PyPI) | = 0.14.2 | No fix listed |
| pypi projen(PyPI) | = 0.14.3 | No fix listed |
| pypi projen(PyPI) | = 0.14.4 | No fix listed |
| pypi projen(PyPI) | = 0.14.5 | No fix listed |
| pypi projen(PyPI) | = 0.14.6 | No fix listed |
| pypi projen(PyPI) | = 0.14.7 | No fix listed |
| pypi projen(PyPI) | = 0.14.8 | No fix listed |
| pypi projen(PyPI) | = 0.14.9 | No fix listed |
| pypi projen(PyPI) | = 0.15.0 | No fix listed |
| pypi projen(PyPI) | = 0.15.1 | No fix listed |
| pypi projen(PyPI) | = 0.15.10 | No fix listed |
| pypi projen(PyPI) | = 0.15.11 | No fix listed |
| pypi projen(PyPI) | = 0.15.12 | No fix listed |
| pypi projen(PyPI) | = 0.15.13 | No fix listed |
| pypi projen(PyPI) | = 0.15.14 | No fix listed |
| pypi projen(PyPI) | = 0.15.15 | No fix listed |
| pypi projen(PyPI) | = 0.15.16 | No fix listed |
| pypi projen(PyPI) | = 0.15.17 | No fix listed |
| pypi projen(PyPI) | = 0.15.18 | No fix listed |
| pypi projen(PyPI) | = 0.15.2 | No fix listed |
Show 49 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi projen(PyPI) | = 0.15.3 | No fix listed |
| pypi projen(PyPI) | = 0.15.4 | No fix listed |
| pypi projen(PyPI) | = 0.15.5 | No fix listed |
| pypi projen(PyPI) | = 0.15.6 | No fix listed |
| pypi projen(PyPI) | = 0.15.7 | No fix listed |
| pypi projen(PyPI) | = 0.15.8 | No fix listed |
| pypi projen(PyPI) | = 0.15.9 | No fix listed |
| pypi projen(PyPI) | = 0.16.0 | No fix listed |
| pypi projen(PyPI) | = 0.16.1 | No fix listed |
| pypi projen(PyPI) | = 0.16.10 | No fix listed |
| pypi projen(PyPI) | = 0.16.11 | No fix listed |
| pypi projen(PyPI) | = 0.16.12 | No fix listed |
| pypi projen(PyPI) | = 0.16.13 | No fix listed |
| pypi projen(PyPI) | = 0.16.14 | No fix listed |
| pypi projen(PyPI) | = 0.16.15 | No fix listed |
| pypi projen(PyPI) | = 0.16.16 | No fix listed |
| pypi projen(PyPI) | = 0.16.17 | No fix listed |
| pypi projen(PyPI) | = 0.16.18 | No fix listed |
| pypi projen(PyPI) | = 0.16.19 | No fix listed |
| pypi projen(PyPI) | = 0.16.2 | No fix listed |
| pypi projen(PyPI) | = 0.16.20 | No fix listed |
| pypi projen(PyPI) | = 0.16.21 | No fix listed |
| pypi projen(PyPI) | = 0.16.22 | No fix listed |
| pypi projen(PyPI) | = 0.16.23 | No fix listed |
| pypi projen(PyPI) | = 0.16.24 | No fix listed |
| pypi projen(PyPI) | = 0.16.25 | No fix listed |
| pypi projen(PyPI) | = 0.16.26 | No fix listed |
| pypi projen(PyPI) | = 0.16.27 | No fix listed |
| pypi projen(PyPI) | = 0.16.28 | No fix listed |
| pypi projen(PyPI) | = 0.16.29 | No fix listed |
| pypi projen(PyPI) | = 0.16.3 | No fix listed |
| pypi projen(PyPI) | = 0.16.30 | No fix listed |
| pypi projen(PyPI) | = 0.16.31 | No fix listed |
| pypi projen(PyPI) | = 0.16.32 | No fix listed |
| pypi projen(PyPI) | = 0.16.33 | No fix listed |
| pypi projen(PyPI) | = 0.16.34 | No fix listed |
| pypi projen(PyPI) | = 0.16.35 | No fix listed |
| pypi projen(PyPI) | = 0.16.36 | No fix listed |
| pypi projen(PyPI) | = 0.16.37 | No fix listed |
| pypi projen(PyPI) | = 0.16.38 | No fix listed |
| pypi projen(PyPI) | = 0.16.39 | No fix listed |
| pypi projen(PyPI) | = 0.16.4 | No fix listed |
| pypi projen(PyPI) | = 0.16.40 | No fix listed |
| pypi projen(PyPI) | = 0.16.5 | No fix listed |
| pypi projen(PyPI) | = 0.16.7 | No fix listed |
| pypi projen(PyPI) | = 0.16.8 | No fix listed |
| pypi projen(PyPI) | = 0.16.9 | No fix listed |
| projen project projen | >= 0.6.0, < 0.16.41 | 0.16.41 |
| projen | = >= 0.6.0, < 0.16.41 | No fix listed |
References
- github.com mitigation third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- github.com product
- github.com
- www.npmjs.com product third-party-advisory
- github.com