Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-21423

MEDIUM 6.8EPSS 73%

Exposure of Version-Control Repository to an Unauthorized Control Sphere in projen

Also known as GHSA-gg2g-m5wc-vccq, PYSEC-2021-111

Mitigation

  • Upgrade projen to 0.16.41 or later.

Who should check

  • Projects that depend on npm package projen (>= 0.6.0, < 0.16.41)
  • Projects that depend on PyPI package projen (< 0.16.41)
  • Anyone running projen >= 0.6.0, < 0.16.41

Vulnerability facts

Affected
projen >= 0.6.0, < 0.16.41; projen < 0.16.41
Fixed in
0.16.41
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
6.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: None
EPSS
1.39% chance of exploitation in 30 days (percentile 73, 2026-11-26)
CWE
CWE-527
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
npm projen>= 0.6.0, < 0.16.410.16.41osv
PyPI projen< 0.16.410.16.41osv
projen>= 0.6.0, < 0.16.41—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2021-21423. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-21423.md
Affected: projen >= 0.6.0, < 0.16.41; projen < 0.16.41
Fixed in: 0.16.41

Steps:
1. Search this machine and project for projen (npm), projen (PyPI), projen: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2021-21423 being exploited?

There is no confirmed exploitation: CVE-2021-21423 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.39% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2021-21423?

Medium: CVSS 6.8 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2021-21423?

projen >= 0.6.0, < 0.16.41; projen < 0.16.41.

Is there a fix for CVE-2021-21423?

Yes. Fixed in 0.16.41. Upgrade projen to 0.16.41 or later.

How do I check if I'm affected by CVE-2021-21423?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors