cvelo
P3 · MediumCVSS 6.3

add-and-commit commits a nested git repository as a gitlink chosen by an outside contributor

  • CVE-2026-144938
  • EUVD-2026-144272

Summary

CVE-2026-144938 (CWE-754, CVSS 6.3) affects add-and-commit in src/main.ts for versions 5.0.0 through before 11.0.0. A contributor who controls a directory under the add pathspec can have a nested git repository staged as a gitlink (mode 160000) that names a commit of their choosing. Git writes only a warning to stderr and exits 0, and the action's error handling and logging do not surface it, so the job log shows no warning and the commit keeps the gitlink. The issue is reachable in workflows that check out pull request content and then run the action over a pathspec covering that content. The record does not list the CISA KEV status as yes; it is not in the known exploited list.

AI summary · verify against the vendor advisory

Description

Improper Check for Unusual or Exceptional Conditions (CWE-754) in add-and-commit, in src/main.ts, from 5.0.0 before 11.0.0. A contributor who controls a directory under the add pathspec can commit a gitlink of their choosing. The add input takes the arguments for git add, and the default value is .. git add records a directory that has its own nested .git directory as a gitlink. The index entry has mode 160000 and names the commit at the nested repository's HEAD. git stores none of the files inside that directory, writes a warning and the remediation hints to stderr, and exits 0. add() in src/main.ts, at lines 220 to 258 in 10.0.0, calls simple-git's add() with a callback that reaches log(). simple-git builds that task with straightThroughStringTask, whose parser takes one argument, so callTaskParser passes stdout and stderr and the parser returns stdout alone. isTaskError is exitCode && stdErr.length, so a zero exit code raises no error, whatever stderr contains. log() in src/util.ts prints the data and reports the error, and both arguments are empty, so the job log shows no warning. add() never reads the staged entries back, so the commit keeps the gitlink, whose path and commit name the contributor sets. The value reaches the action in a workflow that checks out pull request content and then runs the action over a pathspec that covers that content.

Text from the CVE.org record.

Recommendation

  • EndBug add-and-commit

    • If you run a version from 5.0.0 to before 11.0.0update to 11.0.0 or laterMajor version change: expect breaking changes

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • EndBug add-and-commit

    Affected versionsFixed in
    from 5.0.0 to before 11.0.011.0.0

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.