Only the latest stable release receives security fixes. There is no
maintenance branch: a fix ships in the next release, never as a patch to an
earlier line, and a project held on an older framework major stays on the
version before the packages moved past it
(ADR-0010).
Previews are not supported: they receive no fixes of their own, and a fix
reaches them only as it reaches main, in the next weekly preview.
Please do not open a public issue for a security vulnerability.
Use GitHub's private vulnerability reporting instead: https://github.com/AdCodicem/AdCodicem.ValueObjects/security/advisories/new, or the Security tab of this repository → Report a vulnerability. That opens an advisory visible only to the maintainer, which is the fastest way to get a fix moving without disclosing the issue before a patch exists.
Security contact: @AdCodicem, through private vulnerability reporting. GOVERNANCE.md says who holds each credential.
- Within 14 days: a first answer, confirming the report or explaining why it is not a vulnerability.
- Within 90 days of the report: a fix, developed privately in a GitHub security advisory, released, then the advisory published with its CVE, the affected and fixed versions, and credit to the reporter unless they would rather stay anonymous.
- If a fix needs longer, a new date is agreed with the reporter. If the vulnerability is already public or actively exploited, the advisory is published as soon as a fix or a mitigation exists.
Published advisories are listed under the repository's Security advisories.
Every package is attested together with each assembly inside it: a SLSA build
provenance attestation, signed through Sigstore, proves which workflow run built
each file, and the commit that run was started on. That is the commit the file
was built from, with one exception: a preview that completes a version an
earlier run left partly published. That preview is packed again from the earlier
commit, which its nuspec names in <repository commit="…"/> and its assemblies
in their informational version (<version>+<commit>), while the attestation
names the commit the completing run started on; so do not use --source-digest
to pin a preview to its nuspec's commit. Previews are attested by preview.yml
before they are pushed, stable releases by release.yml, which also attaches
the bundle to the
GitHub Release.
That holds from the first versions published since assemblies became subjects,
0.3.0-preview.<N> and 0.3.0 on. Earlier stable releases attest at most
their .nupkg and .snupkg files, and earlier previews nothing.
The files attached to a GitHub Release verify as they are:
gh attestation verify AdCodicem.ValueObjects.<version>.nupkg --repo AdCodicem/AdCodicem.ValueObjectsA package restored from nuget.org is checked through its assemblies.
nuget.org adds its own repository signature to every .nupkg it accepts, which
changes the file's digest, but leaves the files inside as they were packed, and
NuGet extracts them unchanged into the global packages folder:
gh attestation verify \
~/.nuget/packages/adcodicem.valueobjects.json/<version>/lib/net10.0/AdCodicem.ValueObjects.Json.dll \
--repo AdCodicem/AdCodicem.ValueObjectsThe main package, AdCodicem.ValueObjects, ships one assembly, the generator:
analyzers/dotnet/cs/AdCodicem.ValueObjects.Generators.dll. To accept only
one kind of build, add --signer-workflow:
AdCodicem/AdCodicem.ValueObjects/.github/workflows/release.yml accepts stable
releases alone, AdCodicem/AdCodicem.ValueObjects/.github/workflows/preview.yml
previews alone.
To restrict restores to packages published by this account on nuget.org, use
dotnet nuget trust repository nuget.org --owners AdCodicem.
Each stable release, from the one after 0.3.0 on, attaches a CycloneDX SBOM
of every package to its GitHub Release, <PackageId>.<version>.cdx.json: the
NuGet packages it depends on at run time, transitively, and the
AdCodicem.ValueObjects packages it references. The main package's SBOM also
lists the generator and the code fix it bundles, and the Roslyn closure they
are compiled against, which the consumer's compiler provides. The SBOMs are
subjects of the release's provenance attestation, so they verify as the
packages do:
gh attestation verify AdCodicem.ValueObjects.Json.<version>.cdx.json --repo AdCodicem/AdCodicem.ValueObjectsPreviews carry no SBOM: ci.yml writes the same SBOMs on every pull request,
from the packages it packs, to check that they can be.
Dependencies (software composition analysis).
- Every pull request runs GitHub's dependency review (the
dependency reviewjob behindbuild and test). It blocks a change that adds a dependency with a known vulnerability of moderate severity or higher, a malware advisory, or a license outside the allow list in.github/dependency-review-config.yml. - NuGet audit checks every package, transitive ones included, at every
severity, and fails the build on a known vulnerability. An advisory that does
not apply is suppressed alone (
NuGetAuditSuppress) with the reason beside it. - A finding that does not affect the project is suppressed only with a written
reason (
allow-ghsasin.github/dependency-review-config.yml, or theNuGetAuditSuppresscomment), and is published as a VEX statement (OpenVEX, in the release notes and the security advisory) saying why it is not exploitable. - Dependabot alerts are fixed within 7 days for critical, 30 days for high, 90 days for moderate and low, in practice through Renovate's pull requests.
- No release is published while an open critical or high alert applies to what that release ships.
Code (static analysis). CodeQL (codeql.yml) analyzes the C#, the
TypeScript of the site and the workflows on every pull request, every push to
main and weekly, and its CodeQL check is required for every change a person
makes. A new finding of error or high severity blocks the merge; medium and
lower are fixed within 90 days. A finding is dismissed only with a written
reason, visible in the code scanning history. The build runs the .NET
analyzers, their security rules included, with warnings as errors.
These packages generate code that runs inside a consumer's application and carry no network or process boundary of their own, so the interesting reports tend to be:
-
A generated member that parses attacker-controlled input unsafely — the
Parse/TryParsesurface, the regex of the deprecatedPatternoption (including a pattern that makes catastrophic backtracking reachable), or the span-based normalizers.A pattern declared through
IValueObjectPatternValidatoris a[GeneratedRegex]the consumer writes, so its match timeout is the consumer's to set: thePatternoption fixed one second, the hook fixes nothing.VO0026warns on a[GeneratedRegex]withoutmatchTimeoutMilliseconds. A consumer's pattern that backtracks with no timeout is therefore not a finding in this repository. -
A validation rule that can be bypassed, letting a value object hold a value its declaration forbids.
CreateUncheckedis deliberately unchecked and documented as such, so its use by a consumer is not in itself a finding. -
An integration that lets a value cross a boundary without its rules — the model binder, the EF Core converter, the Dapper handler, or a JSON converter.
A vulnerability in a dependency is better reported upstream; open an issue here only if this repository pins a version that is known to be affected.