{"id":"EUVD-2021-0202","enisaUuid":"7edcc496-5330-33d0-b5ec-abe37041f983","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\u0027s `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.","datePublished":"Apr 6, 2021, 6:35:14 PM","dateUpdated":"Aug 3, 2024, 6:09:16 PM","baseScore":6.8,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","references":"https://github.com/projen/projen/security/advisories/GHSA-gg2g-m5wc-vccq\nhttps://github.com/projen/projen/commit/36030c6a4b1acd0054673322612e7c70e9446643\nhttps://www.npmjs.com/package/projen\n","aliases":"CVE-2021-21423\nGHSA-gg2g-m5wc-vccq\nPYSEC-2021-111\n","assigner":"GitHub_M","epss":1.39,"enisaIdProduct":[{"id":"be70be57-4a33-38eb-84c2-8f38f2e613c4","product":{"name":"projen","vendor":{"name":"projen"}},"product_version":"0.6.0, \u003c 0.16.41"}],"enisaIdVendor":[{"id":"7b9b1e45-8e78-316b-a735-6a52990e1103","vendor":{"name":"projen"}}],"enisaIdVulnerability":[{"id":"221445a6-9329-31ba-acf6-b030be4941ea","vulnerability":{"id":"GHSA-gg2g-m5wc-vccq","description":"Rebuild-bot workflow may allow unauthorised repository modifications","datePublished":"Apr 6, 2021, 6:36:40 PM","dateUpdated":"Oct 21, 2024, 8:05:47 PM","baseScore":null,"references":"https://github.com/projen/projen/security/advisories/GHSA-gg2g-m5wc-vccq\nhttps://nvd.nist.gov/vuln/detail/CVE-2021-21423\nhttps://github.com/projen/projen/commit/36030c6a4b1acd0054673322612e7c70e9446643\nhttps://github.com/projen/projen\nhttps://github.com/pypa/advisory-database/tree/main/vulns/projen/PYSEC-2021-111.yaml\nhttps://www.npmjs.com/package/projen\n","enisa_id":"EUVD-2021-0202\n","aliases":"GHSA-gg2g-m5wc-vccq\nCVE-2021-21423\n","epss":0.0,"dataProcessed":"Nov 22, 2026, 2:06:15 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"464485c7-8c94-3963-8f11-8dcb9988cf6c","vulnerability":{"id":"CVE-2021-21423","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\u0027s `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.","datePublished":"Apr 6, 2021, 6:35:14 PM","dateUpdated":"Aug 3, 2024, 6:09:16 PM","status":"PUBLISHED","baseScore":6.8,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","references":"https://github.com/projen/projen/security/advisories/GHSA-gg2g-m5wc-vccq\nhttps://github.com/projen/projen/commit/36030c6a4b1acd0054673322612e7c70e9446643\nhttps://www.npmjs.com/package/projen\n","enisa_id":"EUVD-2021-0202\n","assigner":"GitHub_M","epss":1.39,"dataProcessed":"Nov 23, 2026, 7:23:51 AM","vulnerabilityProduct":[{"id":"e58f9858-8b4a-332a-96a1-1901907c35e3","product":{"name":"projen","vendor":{"name":"projen"}},"product_version":"0.6.0, \u003c 0.16.41"}],"vulnerabilityVendor":[{"id":"a08f1e1e-a8c3-3dc1-89af-adcb29595267","vendor":{"name":"projen"}}]}},{"id":"8f8645d3-cd0f-3f11-a7af-44912bf94ab0","vulnerability":{"id":"PYSEC-2021-111","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\u0027s `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.","datePublished":"Apr 6, 2021, 7:15:00 PM","dateUpdated":"Jul 8, 2021, 3:14:29 AM","baseScore":0.0,"references":"https://github.com/projen/projen/security/advisories/GHSA-gg2g-m5wc-vccq\nhttps://github.com/projen/projen/commit/36030c6a4b1acd0054673322612e7c70e9446643\nhttps://www.npmjs.com/package/projen\n","enisa_id":"EUVD-2021-0202\n","aliases":"CVE-2021-21423\nGHSA-gg2g-m5wc-vccq\n","epss":0.0,"dataProcessed":"Nov 22, 2026, 3:02:45 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[]}