Skip to content

Security Policy ​

This page is the public security policy of @neosjs/release. It applies to the @neosjs/release package published to npm and its command-line tool release.

Supported Versions ​

@neosjs/release is maintained by a single maintainer. Security fixes are released only for the latest minor version and are not backported to earlier releases.

VersionSupported
1.4.x (latest)Yes
< 1.4No

To find the version installed in a project, run the following in that project's directory:

bash
node -p "require('@neosjs/release/package.json').version"

Reporting a Vulnerability ​

Report vulnerabilities privately by email to develop@lingtal.com. Do not disclose an unpatched vulnerability in a public issue, discussion or pull request. Repository collaborators can also use Report a vulnerability on the repository's Security page.

Please include in your report:

  • The affected version, and the command or configuration that triggers the problem.
  • Steps to reproduce, or a proof of concept. For command injection, include the exact branch name, tag name or other input involved.
  • The impact you observed, in particular whether it involves leaked credentials, a wrongly published package, or a compromised maintainer machine.

Reports are handled on a best-effort basis, and you can expect an initial response within 7 days. From the date of reporting, please allow up to 90 days for a fixed version to be released before disclosing the vulnerability publicly.

Good-faith security research is welcome. Test only in repositories, packages and accounts that you control, and do not publish test packages to the public npm registry.

Trust Boundaries ​

@neosjs/release automates git, npm and GitHub / GitLab operations with the identity and credentials of the user who runs it. Some of its features execute code by design; understanding these boundaries helps you use it safely and also helps decide whether an issue should be reported as a vulnerability.

Configuration Files and Plugins Are Code ​

release.config.*, the release.config field in package.json, external plugins, lifecycle hooks, releaseNotes functions and a custom git.logCommand all run with the permissions of the current user.

Running release inside a repository you do not trust is equivalent to running the scripts in that repository. Before releasing after checking out a branch from an outside contributor, review its configuration files, hooks and plugins first.

Hooks and Command Templates Are Shell Commands ​

hooks, git.logCommand and string-valued releaseNotes are first rendered with the context and then handed to the system shell for execution; the ${...} inside templates is a JavaScript expression that gets evaluated, not just a placeholder. A context value that contains shell syntax (whitespace, quotes, $, ;, |, &, etc.) is not rendered into the command: the command is refused and the release fails. Multi-line content such as the changelog is passed to commands through RELEASE_* environment variables instead; see Template variable values and the shell. The git commands built into the tool are not affected by this; see Git.

Where Tokens Go ​

A Token from an environment variable is only sent to the official domain, a host explicitly specified in the configuration (github.host / gitlab.origin), or the address that the CI platform declares for itself. Where it goes is never decided by the git remote URL. See Environment variables for details.

Cases Not Treated as Vulnerabilities ​

  • Issues that require the attacker to first modify the user's configuration, environment variables or installed dependencies.
  • Vulnerabilities in dependencies, git, npm or the hosting platforms themselves. Report these to the projects that maintain them; reports that show a practical impact on @neosjs/release are still welcome.

Cases That Are in Scope ​

Without modifying the configuration:

  • Executing arbitrary commands through repository content such as branch names, tag names or commit messages.
  • A Token or one-time password being sent to a host other than the configured platform, or appearing in logs and error output.
  • Publishing files that do not belong to the package, or publishing to a registry or distribution tag other than the configured one.
  • After a rollback or a cancelled release, the repository or a published package being left in an unintended state.