Skip to content

Security: mpge/penpot-git

Security

docs/security.md

Security

Report a problem privately through GitHub's Report a vulnerability button, if it is there, or open an issue asking for a private contact.

  • Use a subdomain. Penpot runs plugin panels in a frame that keeps its own origin. A panel on Penpot's host name could use your Penpot session, so the service refuses to start there, on any port.
  • Use HTTPS. The panel password is sent with each request. The container port is bound to 127.0.0.1; put a TLS proxy in front of it. Plain HTTP is accepted only for this machine and names without a dot, such as containers.
  • Password. It is kept in memory while the panel is open. Ten wrong attempts from one address block that address for 15 minutes. For IPv6 the whole /64 network counts as one address.
  • Proxy. Set TRUSTED_PROXIES to the address your proxy connects from. Otherwise everyone behind it shares one limit, and someone else's wrong passwords can lock you out. X-Forwarded-For is ignored from any other address.
  • Penpot token. It is sent only to the exact address in PENPOT_URL. API redirects are refused. If Penpot keeps files in S3, the signed download address is followed without the token. The token acts as its owner, so create it on an account that has just the teams you want to sync.
  • Git token. Git reads it through a helper that answers only for the host in GIT_REMOTE, and redirects are off. It is not in the remote address or the process list. Limit it to one repository.
  • SSH. Host keys must already be in GIT_KNOWN_HOSTS_FILE.
  • The repository has your designs in readable form. Keep it private. Anyone who can push to it can add files around designs/, but their .gitattributes do not affect how designs are stored.
  • Archives. Only the paths Penpot writes are accepted. Anything named like Git data, nested too deeply, or over the size limits is rejected, and that design keeps its last version.
  • Stuck runs are stopped after two hours.

Not covered

  • One password opens the panel. There are no separate users.
  • Whoever runs the Penpot server can see and change what is exported.
  • Rolling back to an old, valid export cannot be told apart from an edit. Check the commit history.

There aren't any published security advisories