Skip to content

Commit 137f31e

Browse files
NU1903残
1 parent 4a5e214 commit 137f31e

4 files changed

Lines changed: 25 additions & 20 deletions

File tree

root/programs/CS/Frameworks/ANALYSIS.md

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -605,16 +605,16 @@ powershell.exe -NoProfile -Command "Set-Location 'root\programs'; .\3_SmokeTest.
605605
| プロジェクト | パッケージ |
606606
|---|---|
607607
| Public | `log4net` 3.3.0, `NLog` 5.5.0, `Microsoft.Data.SqlClient` 6.0.1, `System.Data.Odbc` 9.0.4, `Newtonsoft.Json` 13.0.3, `Microsoft.Extensions.Configuration*` 9.0.4, `Zipangu` 1.1.8 |
608-
| Public.Security | `jose-jwt` 5.1.1, `BouncyCastle.NetCore` 2.2.1, `System.Security.Cryptography.Xml` 9.0.15, `Newtonsoft.Json` 13.0.3 |
608+
| Public.Security | `jose-jwt` 5.1.1, `BouncyCastle.NetCore` 2.2.1, `System.Security.Cryptography.Xml` 9.0.18, `Newtonsoft.Json` 13.0.3 |
609609
| Framework | `Microsoft.AspNetCore.{Http,Http.Extensions,Mvc,Session}` 2.3.0, `Microsoft.Extensions.PlatformAbstractions` 1.1.0 |
610-
| Business | `Microsoft.AspNetCore.Authentication{,.Cookies}` 2.3.0, `Microsoft.AspNetCore.{Http,Mvc}` 2.3.0, `System.Security.Cryptography.Xml` 9.0.4, `Newtonsoft.Json` 13.0.3 ほか |
610+
| Business | `Microsoft.AspNetCore.Authentication{,.Cookies}` 2.3.0, `Microsoft.AspNetCore.{Http,Mvc}` 2.3.0, `System.Security.Cryptography.Xml` 9.0.18, `Newtonsoft.Json` 13.0.3 ほか |
611611

612612
**注意 1:** `Microsoft.AspNetCore.*`**2.3.0(互換シム パッケージ)** を使い続けている。
613613
net10.0 のフレームワーク参照(`Microsoft.AspNetCore.App`)ではない。安易に上げると壊れる可能性が高い。
614614

615-
**注意 2:** `System.Security.Cryptography.Xml`**`Public.Security` が 9.0.15、`Business` が 9.0.4**
616-
版がずれている(Dependabot が 1 プロジェクトずつしか上げないため)。どちらも NU1903 が出る。
617-
**修正版は 9.0.18**(12 節に advisory と該当 4 箇所を挙げてある)。
615+
**注意 2:** `System.Security.Cryptography.Xml`**4 箇所すべてを同じ版で揃える**こと。
616+
Dependabot が 1 プロジェクトずつしか上げないため、放っておくと版が割れて NU1903 が残る
617+
(12 節に advisory と該当箇所を挙げてある)。
618618

619619
依存は Dependabot で随時更新される。**上表は目安であり、正確な値は csproj を直接見ること。**
620620

@@ -638,29 +638,34 @@ net10.0 のフレームワーク参照(`Microsoft.AspNetCore.App`)ではな
638638
9. `Public/Security/MyDebug.cs``Public/Diagnostics/MyDebug.cs`**派生クラス**(重複ではない。
639639
アセンブリ分割の都合)。
640640
10. `TMProtocolDefinition2.xml` など「2」付きの定義ファイルが並存する。用途は用例違い。
641-
11. **`System.Security.Cryptography.Xml` に既知脆弱性(NU1903 / 高)**
642-
`1_BuildAll.ps1` の全体で **84 警告**`Public.Security` の 9.0.15 が 60、`Business` の 9.0.4 が 24)。
641+
11. **`System.Security.Cryptography.Xml` は 9.0.18 で揃える**(NU1903 / 高、2026/08/08 に解消)。
643642

644-
**修正版は 9.0.18。** 2 件の advisory が出ており、9.0.15 では**片方しか直っていない**
643+
2 件の advisory が出ており、**9.0.15 では片方しか直っていない**
645644

646645
| Advisory | 影響(9 系) | 修正版 |
647646
|---|---|---|
648647
| `GHSA-23rf-6693-g89p`CVE-2026-50648) | `>= 9.0.0, <= 9.0.17` | **9.0.18** |
649648
| `GHSA-37gx-xxp4-5rgx`CVE-2026-33116) | `>= 9.0.0, <= 9.0.14` | 9.0.15 |
650649

651-
版を上げる場合は **net48 / netcore100 の両 csproj と `NuGet/*.nuspec`
652-
`<dependencies>` を同時に直す。** 現状ずれているのは次の 4 箇所。
650+
参照は次の 4 箇所。**すべて netcore100 側だけ**である。
653651

654652
```
655-
Public/Security/Public.Security_netcore100.csproj 9.0.15
656-
Business/Business_netcore100.csproj 9.0.4
657-
Tests/EncAndDecUtilCUI/core100/*.csproj 9.0.6 ← Dependabot PR #510 が 9.0.18 へ
658-
NuGet/Symbol_Public.Security.nuspec 9.0.15
653+
Public/Security/Public.Security_netcore100.csproj
654+
Business/Business_netcore100.csproj
655+
Tests/EncAndDecUtilCUI/core100/EncAndDecUtilCUICore.csproj
656+
NuGet/Symbol_Public.Security.nuspec
659657
```
660658
661-
**Dependabot は 1 プロジェクトずつしか上げない。** #510 はテスト プロジェクトのみで、
662-
取り込んでも 84 警告は減らない。**残りは手で揃える**こと
663-
(手順は [`BUILDING.md`](../../BUILDING.md) 9 節「複数の PR を `deps` に溜める」)。
659+
> **net48 は、このパッケージを参照しない。** .NET Framework は
660+
> `System.Security.dll` を BCL として持つため(`<Reference Include="System.Security" />`)。
661+
> 「net48 / netcore100 の両方を直す」という一般則は、**このパッケージには当てはまらない。**
662+
663+
**Dependabot は 1 プロジェクトずつしか上げない。** #507 が `Public.Security` だけを
664+
9.0.15 にし、#510 がテスト プロジェクトだけを 9.0.18 にしたため、
665+
一時 4 箇所が 3 通りの版に割れていた(84 警告)。
666+
**セキュリティ更新は、Dependabot の PR を取り込んだら他の参照も揃えること。**
667+
揃えておけば「もう脆弱でない」ため、同じ箇所への PR が後から来て競合することも無い
668+
(運用は [`BUILDING.md`](../../BUILDING.md) 9 節)。
664669
12. **結果ファイル比較のテストは、検算しないと不具合を「正」として固定する。**
665670
`ArrayOperator.GetLongFromByte` は桁の重みを `256 * j`(掛け算)で求めており、
666671
**3 byte 目から誤った値**を返していた(2026/08/06 に修正、#522)。

root/programs/CS/Frameworks/Infrastructure/Business/Business_netcore100.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.3.0" />
6565
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="9.0.4" />
6666
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
67-
<PackageReference Include="System.Security.Cryptography.Xml" Version="9.0.4" />
67+
<PackageReference Include="System.Security.Cryptography.Xml" Version="9.0.18" />
6868
</ItemGroup>
6969

7070
<ItemGroup>

root/programs/CS/Frameworks/Infrastructure/Public/Security/Public.Security_netcore100.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<ItemGroup>
3939
<PackageReference Include="BouncyCastle.NetCore" Version="2.2.1" />
4040
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
41-
<PackageReference Include="System.Security.Cryptography.Xml" Version="9.0.15" />
41+
<PackageReference Include="System.Security.Cryptography.Xml" Version="9.0.18" />
4242
</ItemGroup>
4343

4444
<ItemGroup>

root/programs/CS/NuGet/Symbol_Public.Security.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<dependency id="Touryo.Infrastructure.Public" version="$version$" />
2626
<dependency id="BouncyCastle.NetCore" version="2.2.1" />
2727
<dependency id="Newtonsoft.Json" version="13.0.3" />
28-
<dependency id="System.Security.Cryptography.Xml" version="9.0.15" />
28+
<dependency id="System.Security.Cryptography.Xml" version="9.0.18" />
2929
</group>
3030
</dependencies>
3131
</metadata>

0 commit comments

Comments
 (0)