Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. taylored
  4. ›
  5. GHSA-vh5j-5fhq-9xwg

GHSA-vh5j-5fhq-9xwg: Taylor has race condition in /get-patch that allows purchase token replay

June 27, 2025 (updated June 30, 2025)

The /get-patch endpoint processes a purchase in two separate database queries: a SELECT that verifies the token is unused, followed by an UPDATE that marks the token as used. Because SQLite only guards each statement, a malicious actor can issue two requests at the exact same moment and have both SELECT statements succeed before either UPDATE runs.

References

  • github.com/advisories/GHSA-vh5j-5fhq-9xwg
  • github.com/tailot/taylored
  • github.com/tailot/taylored/commit/fdf67a6fba0deae30912905a79fb5a9e83751a79
  • github.com/tailot/taylored/security/advisories/GHSA-vh5j-5fhq-9xwg

Code Behaviors & Features

Detect and mitigate GHSA-vh5j-5fhq-9xwg with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 8.1.3

Fixed versions

  • 8.1.3

Solution

Upgrade to version 8.1.3 or above.

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Source file

npm/taylored/GHSA-vh5j-5fhq-9xwg.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:23 +0000.