<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: PHILIPPE </title>
    <description>The latest articles on DEV Community by PHILIPPE  (@phlppgdfry).</description>
    <link>https://dev.to/phlppgdfry</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4272513%2F01e75e91-8d3d-4f39-a5fe-cc050803d405.jpg</url>
      <title>DEV Community: PHILIPPE </title>
      <link>https://dev.to/phlppgdfry</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/phlppgdfry"/>
    <language>en</language>
    <item>
      <title>The advisory says you're safe. The code says otherwise.</title>
      <dc:creator>PHILIPPE </dc:creator>
      <pubDate>Mon, 30 Nov 2026 19:03:58 +0000</pubDate>
      <link>https://dev.to/phlppgdfry/the-vulnerable-releases-dependabot-never-warns-you-about-2leg</link>
      <guid>https://dev.to/phlppgdfry/the-vulnerable-releases-dependabot-never-warns-you-about-2leg</guid>
      <description>&lt;p&gt;&lt;em&gt;Corrected on 2026-11-30: an earlier version of this post said Dependabot misses these releases. That was wrong: Dependabot reads a different range. What does miss them is the range the advisory page shows, and &lt;code&gt;npm audit&lt;/code&gt;, which I checked below. The corrections were submitted on 2026-11-28 and are waiting for curator review.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Open a GitHub advisory and its "Affected versions" line tells you whether your release is vulnerable. When that line stops one release too early, it tells someone they're safe while they're still running the vulnerable code. I went looking for that specific mistake and found it four times in one afternoon, including in a critical advisory.&lt;/p&gt;

&lt;h2&gt;
  
  
  One advisory, two ranges
&lt;/h2&gt;

&lt;p&gt;A GitHub advisory carries the affected versions twice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a machine-readable range (&lt;code&gt;introduced&lt;/code&gt; → &lt;code&gt;fixed&lt;/code&gt;), which the OSV export and OSV-based scanners read, and&lt;/li&gt;
&lt;li&gt;a human-readable string (&lt;code&gt;last_known_affected_version_range&lt;/code&gt;), which the advisory page shows as "Affected versions" and the REST API returns as &lt;code&gt;vulnerable_version_range&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The display string is often written from whatever the reporter tested, say "reproduced on 11.12.3", so it becomes &lt;code&gt;&amp;lt;= 11.12.3&lt;/code&gt;. The maintainer then ships a few more releases before the fix lands in 11.16.0, and nobody updates the string:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Version&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Affected (as displayed)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;= 11.12.3&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Patched&lt;/td&gt;
&lt;td&gt;&lt;code&gt;11.16.0&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Shown as neither&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;11.13.0, 11.14.0, 11.15.0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Someone on 11.15.0 opens the advisory, sees &lt;code&gt;&amp;lt;= 11.12.3&lt;/code&gt;, and concludes they're fine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;npm audit&lt;/code&gt; draws the same conclusion.&lt;/strong&gt; npm's bulk advisory endpoint, which &lt;code&gt;npm audit&lt;/code&gt; queries, does not return GHSA-p6vx-979v-rg4c (seroval, critical) for 1.6.1, nor GHSA-53v6-4h7p-p4gj / GHSA-jjpr-9cvf-cq55 for music-metadata 11.15.0. OSV returns all three (checked 2026-11-30).&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding them automatically
&lt;/h2&gt;

&lt;p&gt;The check has two steps, both in &lt;a href="https://github.com/phlppgdfry/github-security-intelligence" rel="noopener noreferrer"&gt;&lt;code&gt;ghsi&lt;/code&gt;&lt;/a&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Find the gap.&lt;/strong&gt; For every reviewed advisory, list the releases on the registry (npm and PyPI today) that sit between the displayed range and the first patched version. Yanked releases don't count: a maintainer who yanked them already solved the problem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prove the gap is vulnerable.&lt;/strong&gt; Take the fix commits from the advisory's references and ask git whether any of them is in the gap releases. If the fix is in the patched release and in none of the gap releases, those releases are vulnerable.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That is &lt;code&gt;ghsi scan --verify-gaps&lt;/code&gt;. A lead is still a question, not an answer, so every hit gets a manual check against the code in the published artifact before anything is submitted.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it found
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Advisory&lt;/th&gt;
&lt;th&gt;Package&lt;/th&gt;
&lt;th&gt;Shown-safe but vulnerable&lt;/th&gt;
&lt;th&gt;Correction&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GHSA-53v6-4h7p-p4gj&lt;/td&gt;
&lt;td&gt;music-metadata (APEv2)&lt;/td&gt;
&lt;td&gt;11.13.0, 11.14.0, 11.15.0&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;&amp;lt;= 11.12.3&lt;/code&gt; → &lt;code&gt;&amp;lt; 11.16.0&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GHSA-jjpr-9cvf-cq55&lt;/td&gt;
&lt;td&gt;music-metadata (ID3v2)&lt;/td&gt;
&lt;td&gt;11.13.0, 11.14.0, 11.15.0&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;&amp;lt;= 11.12.3&lt;/code&gt; → &lt;code&gt;&amp;lt; 11.16.0&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GHSA-p6vx-979v-rg4c&lt;/td&gt;
&lt;td&gt;seroval (&lt;strong&gt;critical&lt;/strong&gt;)&lt;/td&gt;
&lt;td&gt;1.6.1&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;&amp;gt;= 0.12.0, &amp;lt;= 1.6.0&lt;/code&gt; → &lt;code&gt;&amp;lt; 1.6.2&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GHSA-4ghv-53cq-7wp3&lt;/td&gt;
&lt;td&gt;Home Assistant&lt;/td&gt;
&lt;td&gt;2026.2.2&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;&amp;lt; 2026.2.2&lt;/code&gt; → &lt;code&gt;&amp;lt; 2026.2.3&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;seroval has no git tags, so git ancestry couldn't answer the question. There I downloaded the npm tarballs of 1.6.1 and 1.6.2 and compared the code directly.&lt;/p&gt;

&lt;p&gt;A nastier variant: when the version listed as &lt;strong&gt;patched&lt;/strong&gt; doesn't contain the fix (Snipe-IT 8.6.1, deepseek-tui 0.8.41), both ranges are wrong and every tool is fooled. &lt;code&gt;ghsi fixcheck&lt;/code&gt; looks for that one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it taught me: most leads are not bugs
&lt;/h2&gt;

&lt;p&gt;The leads that turned out &lt;em&gt;not&lt;/em&gt; to be errors were the most instructive part:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Yanked releases.&lt;/strong&gt; soupsieve 3.0 and 3.0.1 sit in a gap, but both were yanked. The curators chose 3.0.2 on purpose.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monorepo tags.&lt;/strong&gt; A tag named &lt;code&gt;v5.0.0&lt;/code&gt; in a monorepo can belong to a different package than the one in the advisory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Separate security commits.&lt;/strong&gt; Some projects (Symfony) ship security fixes through a commit that isn't the one linked in the advisory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Releases that never reached the registry.&lt;/strong&gt; If a version only exists as a git tag, nobody can install it, and the range doesn't need to cover it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The yanked-release case is now a test in the tool, so the next run doesn't raise it again; the others are written down so the next check is faster.&lt;/p&gt;

&lt;h2&gt;
  
  
  Do it yourself
&lt;/h2&gt;

&lt;p&gt;Anyone can suggest a correction: open the advisory on github.com/advisories and choose &lt;strong&gt;Suggest improvements for this vulnerability&lt;/strong&gt;. Link primary sources (tag compare, fix commit, release notes, registry page) and change only what you can prove. The curators get a lot of suggestions. The ones that are small, sourced and easy to verify are the ones that get merged.&lt;/p&gt;

&lt;p&gt;Step-by-step with the seroval case: &lt;a href="https://github.com/phlppgdfry/github-security-intelligence/blob/main/docs/first-advisory-credit.md" rel="noopener noreferrer"&gt;docs/first-advisory-credit.md&lt;/a&gt;. The tool and the full log of what I submitted and rejected: &lt;a href="https://github.com/phlppgdfry/github-security-intelligence" rel="noopener noreferrer"&gt;phlppgdfry/github-security-intelligence&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written with AI assistance (Claude); every case and number comes from the public repo and the linked pull requests.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>opensource</category>
      <category>github</category>
      <category>python</category>
    </item>
    <item>
      <title>168 repositories, 899 Dependabot alerts, one sweep</title>
      <dc:creator>PHILIPPE </dc:creator>
      <pubDate>Mon, 30 Nov 2026 19:02:53 +0000</pubDate>
      <link>https://dev.to/phlppgdfry/168-repositories-899-dependabot-alerts-one-sweep-382k</link>
      <guid>https://dev.to/phlppgdfry/168-repositories-899-dependabot-alerts-one-sweep-382k</guid>
      <description>&lt;p&gt;I have a lot of repositories: portfolio cases, apps, experiments. 168 of them. One day I turned on every GitHub security feature I could, everywhere, and got the bill: &lt;strong&gt;899 open Dependabot alerts&lt;/strong&gt; across the public ones, 195 CodeQL alerts (one critical), and, happily, zero leaked secrets.&lt;/p&gt;

&lt;p&gt;Here's how I got the Dependabot number to about 249 without merging anything blindly.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Turn it on with a script, not by clicking
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;scripts/harden_repos.py&lt;/code&gt; enables Dependabot alerts and security updates on every repo, plus secret scanning, push protection and CodeQL default setup on the public ones (the API refuses the last three on private repos without a paid plan). Repos without a config got a &lt;strong&gt;grouped&lt;/strong&gt; &lt;code&gt;dependabot.yml&lt;/code&gt;: one PR per ecosystem instead of thirty.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Sort the PRs before touching them
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;scripts/dependabot_triage.py&lt;/code&gt; puts every open Dependabot PR in one of four buckets:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Bucket&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;th&gt;What I did&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;safe&lt;/td&gt;
&lt;td&gt;all checks pass, no major bump&lt;/td&gt;
&lt;td&gt;merged after a look&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;major&lt;/td&gt;
&lt;td&gt;major version bump&lt;/td&gt;
&lt;td&gt;ran CI or a local build/test first&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;failing&lt;/td&gt;
&lt;td&gt;checks fail&lt;/td&gt;
&lt;td&gt;fixed (lockfiles, peer deps) or closed with a reason&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;pending&lt;/td&gt;
&lt;td&gt;checks still running&lt;/td&gt;
&lt;td&gt;waited&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Roughly 45 PRs went through this.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Major bumps are migrations, not patches
&lt;/h2&gt;

&lt;p&gt;Some were fine once tested: vite 5 to 8 (with &lt;code&gt;.js&lt;/code&gt; to &lt;code&gt;.jsx&lt;/code&gt; renames), TypeScript 7, AutoMapper 15 with the .NET tests green. Others weren't patches at all: an Angular 17 to 22 jump is a migration project, so I closed it and patched the real transitive vulnerabilities with &lt;code&gt;overrides&lt;/code&gt; instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Tell Dependabot what not to do
&lt;/h2&gt;

&lt;p&gt;MAUI has to track the .NET SDK, so standalone MAUI bumps always break. &lt;code&gt;dependabot.yml&lt;/code&gt; now ignores MAUI &lt;em&gt;version&lt;/em&gt; updates while still allowing MAUI &lt;em&gt;security&lt;/em&gt; updates. Stale lockfile-only PRs got &lt;code&gt;@dependabot recreate&lt;/code&gt; instead of manual fixing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Result
&lt;/h2&gt;

&lt;p&gt;899 to about 249 open alerts. Most of the rest sit in one demo monorepo that needs that Angular migration. That's tracked as a project, not hidden as "won't fix".&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell a small team
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Group updates. Thirty PRs a week is how people learn to ignore Dependabot.&lt;/li&gt;
&lt;li&gt;Triage by &lt;em&gt;risk&lt;/em&gt;, not by date: safe / major / failing.&lt;/li&gt;
&lt;li&gt;Close with a reason. A closed PR with "this is a migration, tracked in #N" is information; a stale one is noise.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The scripts are in &lt;a href="https://github.com/phlppgdfry/github-security-intelligence/tree/main/scripts" rel="noopener noreferrer"&gt;github-security-intelligence&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written with AI assistance (Claude); the numbers and scripts are from my own repos.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>github</category>
      <category>devops</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
