fix(security): bump fast-xml-builder + least-privilege workflow permissions#243
Merged
saurabhjain1592 merged 1 commit intoJun 16, 2026
Merged
Conversation
…low perms Clears two Dependabot alerts on the transitive dev dependency fast-xml-builder (devDependency @aws-sdk/client-bedrock-runtime -> @aws-sdk/core -> @aws-sdk/xml-builder -> fast-xml-parser -> fast-xml-builder): - #32 (high) attribute-value quote bypass (patched 1.1.7) - #31 (medium) comment-value regex bypass (patched 1.1.6) 1.1.5 -> 1.2.0 satisfies fast-xml-parser's ^1.1.5 constraint. This is a development-only dependency: it does not ship to consumers of @axonflow/sdk, so the lockfile bump requires NO npm republish. package.json is intentionally untouched. Also clears CodeQL #8 (actions/missing-workflow-permissions) by adding a top-level least-privilege `permissions: contents: read` block to heartbeat-real-stack.yml (the workflow only checks out the repo and runs tests). Block is kept identical to the axonflow-sdk-java fix for coherence. Refs getaxonflow/axonflow-enterprise#2711 Signed-off-by: Saurabh Jain <saurabh.jain@getaxonflow.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Clears all three open security alerts on this repo (epic getaxonflow/axonflow-enterprise#2711).
fast-xml-builderattribute-value quote bypass (patched 1.1.7)1.1.5->1.2.0fast-xml-buildercomment-value regex bypass (patched 1.1.6)1.1.5->1.2.0actions/missing-workflow-permissionsonheartbeat-real-stack.ymlpermissions: contents: readfast-xml-builder is a DEV-only transitive dependency -> no republish
Chain:
@aws-sdk/client-bedrock-runtime(devDependency) ->@aws-sdk/core->@aws-sdk/xml-builder->fast-xml-parser@5.7.2->fast-xml-builder. Every node is marked"dev": trueinpackage-lock.json, so it does not ship to consumers of@axonflow/sdk. The lockfile bump requires no npm republish andpackage.jsonis intentionally untouched.1.2.0satisfiesfast-xml-parser's^1.1.5constraint.Workflow permissions
heartbeat-real-stack.ymlonly checks out the repo and runs tests (no release, artifact-publish, or PR-comment steps), socontents: readis sufficient. The block is kept byte-identical to the axonflow-sdk-java heartbeat fix for canonical coherence.Tests
npm run buildgreennpm testgreen (32 suites, 964 passed)Refs getaxonflow/axonflow-enterprise#2711
Transitive dependency disclosure
Bumping
fast-xml-builder1.1.5 -> 1.2.0 changes its declared deps from{ path-expression-matcher: ^1.1.3 }to{ path-expression-matcher: ^1.5.0, xml-naming: ^0.1.0 }(verified via
npm view fast-xml-builder@1.2.0 dependencies). Effect onpackage-lock.json:xml-naming@0.1.0is added (new transitive, absent onorigin/main). It is a 0.x package; flagged for visibility. Dev-only ("dev": true).path-expression-matcherconstraint moves^1.1.3->^1.5.0, but the resolved version was already1.5.0onorigin/main(pulled by other dev tooling), so the installed tree does not change for it. Dev-only ("dev": true).Both are intended upstream transitives of
fast-xml-builder@1.2.0and are dev-only (the whole chain hangs off the@aws-sdk/client-bedrock-runtimedevDependency), so there is no consumer or runtime exposure and no npm republish is needed.