A Failed Build Leaked My Secrets. Here's How I Reported It as a CVE.

SecurityCVEResponsible DisclosureOpen SourceGitHubDokploySecrets Management
By , Senior Full-Stack Engineer6 min read

In October 2026, a deploy of one of my apps failed on Dokploy, an open-source platform for deploying apps to your own servers. The build-error notification landed in my inbox, and it held every environment variable the app had, in plain text: database passwords, API keys, and an encryption key.

Dokploy's builder put each secret into a shell command, and when the command failed, the error message carried the whole command into notifications and logs. I reported it privately, the maintainers fixed it, and it became CVE-2026-129992, my first CVE.

If you find a bug like this in a tool you depend on, this is how I'd report it, with my report as the example.

1. Fix Your Own Exposure First

Before you write anything, deal with the damage on your side. I rotated every secret in that email before I went looking for the cause.

2. Find the Private Channel

Don't open a public issue with the details. A public issue tells everyone how to use the bug before a fix exists.

Look for a private way in, in this order:

  • The repository's Security tab. If the maintainers turned on GitHub's private vulnerability reporting, you'll see a "Report a vulnerability" button there. Only the maintainers, and anyone they invite, see your report, and it becomes the draft of the security advisory.
  • A SECURITY.md file. If the project has one, it says where to send reports.
  • A security.txt file at /.well-known/security.txt on the project's website. It's a standard place (RFC 9116) for a security contact.
  • A maintainer's email from the project's site or package metadata.

If you find none of these, open a short public issue that asks for a private contact. Say you have a security report, and leave out every detail.

Dokploy had private reporting turned on, so my report went through the Security tab.

3. Check What's Already Known

Search the project's issues and published advisories before you write. Someone may have found the same thing.

In my case, two public issues had already described parts of the problem: one about a registry password in logs and failure emails, and one about secrets in the build command. The maintainers had also merged a fix to the development branch the day before my notification arrived. No release had it yet.

My report still added two things:

  • It covered more ground. The earlier issues covered the registry password and two other build types, mostly in logs. My report added the Railpack builder, every notification channel, and the database backups, which put passwords and S3 keys on the command line the same way.
  • It produced an advisory. An advisory with a CVE goes on the public CVE list, which security scanners and vulnerability databases read. That's how users find out they need to upgrade.

If you find an existing public issue, link it in your report and say what your report adds.

4. Write a Report Maintainers Can Act On

Write it so a maintainer can reproduce the bug without asking you anything. Mine had five parts:

  • Summary. Two or three sentences in plain words: what leaks, where it goes, and who's affected.
  • Details. The versions I saw it on, the file paths where the secrets enter the commands, and the path the error takes to the notification code. I also said what I didn't check: I looked at the Railpack builder and the database backups, not the Nixpacks builder.
  • Proof of concept. Numbered steps on a fresh test install, with a made-up secret as the marker: set CANARY_SECRET=canary-1234, make the build fail on purpose, and search the notification for canary-1234. I tested the build path. I read the backup code but didn't run a backup test, and the report says so.
  • Impact. Who's affected (every instance with build-error or backup notifications on), what leaks, and where it ends up. Email providers and chat apps store messages, and more people can read a shared channel than can log in to the server.
  • Suggested fix. Pass secrets to the child process as environment variables instead of in the command string. Keep the command out of error messages, and send only the exit code and the last lines of output, with known secret values removed.

5. Stay on Safe Ground

Test only on systems you own, such as a fresh install on your own test server. Don't probe someone else's instance to see if they're affected, and don't open or keep anyone else's data.

Don't post about the bug before the fix ships. That includes a vague post on X or in a Discord channel. People can work out a lot from a hint.

I'm an engineer, not a lawyer. If the bug is in a company's hosted service instead of open-source code you run yourself, read their disclosure policy before you test anything.

6. After You Send It

Answer the maintainers' questions quickly, and offer to test the fix. Agree on when the details go public. Ninety days is a common default (Google's Project Zero uses it).

My report's timeline:

StepDateDays after the report
Report filedOctober 23, 20260
Fix released (Dokploy 0.31.0)November 5, 202613
Advisory publishedNovember 12, 202620
CVE publishedNovember 18, 202626

GitHub is a CNA (a CVE Numbering Authority, one of the groups allowed to assign CVE IDs), so the maintainers could request the CVE straight from the advisory. The advisory lists me as the reporter.

If the maintainers don't answer after a couple of weeks and a follow-up, don't go public on your own. CERT/CC (the CERT Coordination Center) coordinates reports between researchers and vendors who aren't responding.

If You Run Dokploy

  • Upgrade. The advisory lists 0.31.1 as the patched version.
  • Rotate what may have leaked. Upgrading stops new leaks. It doesn't remove secrets from emails, chat channels, or container logs that already hold them. If build-error or backup notifications were on and a build or backup ever failed, rotate the secrets for that app or database.

Contact

Questions about a post or a project? Send a message below.

Required fields are marked “(required)”.