Skip to content

chore(deps): bump @nestjs/config from 4.0.4 to 12.1.1 - #900

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/nestjs/config-12.1.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/nestjs/config-12.1.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 20, 2026

Copy link
Copy Markdown

Bumps @nestjs/config from 4.0.4 to 12.1.1.

Release notes

Sourced from @​nestjs/config's releases.

Release 12.1.1

Dependencies

Full Changelog: nestjs/config@12.1.0...12.1.1

Release 12.1.0

Security

This release fixes several security issues in how ConfigService resolves property paths and how ConfigModule.forRoot() loads and validates environment variables. See GHSA-q989-84g5-qg72 for details. Upgrading is recommended.

Behavior changes

Some fixes change what ConfigService returns. Please review them before upgrading:

  • Property paths only resolve members a configuration object defines (own properties and members of your own classes). Members inherited from built-ins resolve to undefined, e.g. get('database.toString'), get('constructor.prototype') or get('cert.length') for a Buffer. set() never writes through them, and paths through __proto__, constructor or prototype are ignored.
  • Validated variables take precedence:
    • A variable that the validator maps to undefined is no longer served from process.env. get(key, defaultValue) returns the default.
    • A variable that a validationSchema declares and removes (e.g. Joi .strip()) is no longer merged back. Undeclared variables are still kept.
    • With skipProcessEnv: true and a validationSchema, undeclared variables from process.env are no longer served. Declared ones still are. A validate function's output is served as it is.
    • With validatePredefined: false, a predefined variable now takes precedence over a different value from the env file, and get() returns it as it is.
    • A second validated forRoot() no longer replaces the converted values of another one.
  • expandVariables:
    • Expanded values are assigned to process.env after validation, not before.
    • Several env files are expanded once, so $ and \$ in earlier files are no longer expanded again.
    • With override: true, a variable's reference to itself (e.g. PATH=/opt/bin:$PATH) expands to its previous value.
  • Env files: a value containing a NUL character now fails startup instead of being truncated in process.env. __proto__ keys returned by a custom parser are ignored.
  • ConfigService.set():
    • Dependent variables are re-expanded from the definitions loaded at startup. The env files are not read again.
    • Values passed to earlier set() calls and variables set in the environment are kept.
    • The expandVariables.processEnv target is honored.
    • A re-expanded value longer than 128 KiB throws.
  • Load order:
    • ConfigService from a plain imports: [ConfigModule] or ConfigModule.forFeature() is provided once forRoot() has merged its load factories.
    • ConfigModule.envVariablesLoaded (used by ConditionalModule.registerWhen()) waits until every forRoot() in progress has loaded its environment variables.
  • Validation errors no longer include the rejected value: Joi pattern() messages leave it out, and a quoted value is replaced with [redacted].

Features

  • validate may be an async function. A rejected promise stops startup.
  • ConfigService.set() re-interpolates variables that depend on the changed key, including chains of references (#2463).

Bug fixes

  • override: true takes precedence when expanding variables (#2465).
  • get('_PROCESS_ENV_VALIDATED') no longer returns the internal snapshot of validated variables.

Deprecations

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@nestjs/config](https://github.com/nestjs/config) from 4.0.4 to 12.1.1.
- [Release notes](https://github.com/nestjs/config/releases)
- [Commits](nestjs/config@4.0.4...12.1.1)

---
updated-dependencies:
- dependency-name: "@nestjs/config"
  dependency-version: 12.1.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from chonilius as a code owner November 20, 2026 13:13
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
merge-fi-backend Error Error Nov 20, 2026 1:15pm UTC

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 20, 2026

This branch had an error being deployed

1 failed deployment
Preview — 7bddb359 Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants