Skip to content

Commit 1c04d33

Browse files
authored
Merge pull request #2128 from sorah/rel0828-languagefix
Minor language fix on Aug 28th, 2019 release Also closes #2126
2 parents 462b97f + f1d67a7 commit 1c04d33

File tree

2 files changed

+29
-24
lines changed

2 files changed

+29
-24
lines changed

en/news/_posts/2019-08-28-multiple-jquery-vulnerabilities-in-rdoc.md

+16-11
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ lang: en
99
---
1010

1111

12-
There are multiple vulnerabilities about Cross-Site Scripting (XSS) in jQuery that is contained by RDoc bundled with Ruby.
13-
All ruby users are recommended to update ruby to newer version which includes security-fixed RDoc.
14-
If you are publishing RDoc documentation generated by rdoc, you are recommended to re-generate it with security-fixed RDoc.
12+
There are multiple vulnerabilities about Cross-Site Scripting (XSS) in jQuery shipped with RDoc which bundled in Ruby.
13+
All Ruby users are recommended to update Ruby to the latest release which includes the fixed version of RDoc.
1514

1615
## Details
1716

@@ -20,8 +19,8 @@ The following vulnerabilities have been reported.
2019
* [CVE-2012-6708](https://nvd.nist.gov/vuln/detail/CVE-2012-6708)
2120
* [CVE-2015-9251](https://nvd.nist.gov/vuln/detail/CVE-2015-9251)
2221

23-
It is strongly recommended for all ruby users to upgrade your Ruby installation or take one of the following workarounds as soon as possible.
24-
After that, you should re-generate RDoc documentation.
22+
It is strongly recommended for all Ruby users to upgrade your Ruby installation or take one of the following workarounds as soon as possible.
23+
You also have to re-generate existing RDoc documentations to completely mitigate the vulnerabilities.
2524

2625
## Affected Versions
2726

@@ -31,22 +30,27 @@ After that, you should re-generate RDoc documentation.
3130
* Ruby 2.6 series: 2.6.3 and earlier
3231
* prior to master commit f308ab2131ee675000926540cbb8c13c91dc3be5
3332

33+
## Required actions
34+
35+
RDoc is a static documentation generation tool.
36+
Patching the tool itself is insufficient to mitigate these vulnerabilities.
37+
38+
So, RDoc documentations generated with previous versions have to be re-generated with newer RDoc.
39+
3440
## Workarounds
3541

3642
In principle, you should upgrade your Ruby installation to the latest version.
3743
RDoc 6.1.2 or later includes the fix for the vulnerabilities, so upgrade RDoc to the latest version if you can’t upgrade Ruby itself.
3844

45+
Note that as mentioned earlier, you have to regenerate existing RDoc documentations.
46+
3947
```
4048
gem install rdoc -f
4149
```
4250

43-
*Update:* The initial version of this post said rdoc-6.1.1.gem which was still vulnerable. Please make sure that you install rdoc-6.1.2 or later.
44-
45-
Regarding the development version (master branch), update to HEAD.
51+
*Update:* The initial version of this post partially mentioned rdoc-6.1.1.gem, which was still vulnerable. Please make sure that you install rdoc-6.1.2 or later.
4652

47-
RDoc is a static documentation generation tool.
48-
Patching the library itself is insufficient to correct this exploit.
49-
Those hosting rdoc documentation will need to re-generate it with security-fixed RDoc.
53+
Regarding the development version, update to the latest HEAD of master branch.
5054

5155
## Credits
5256

@@ -56,3 +60,4 @@ Thanks to [Chris Seaton](https://hackerone.com/chrisseaton) for reporting the is
5660

5761
* Originally published at 2019-08-28 09:00:00 UTC
5862
* RDoc version fixed at 2019-08-28 11:50:00 UTC
63+
* Minor language fixes at 2019-08-28 12:30:00 UTC

ja/news/_posts/2019-08-28-multiple-jquery-vulnerabilities-in-rdoc.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ tags: security
88
lang: ja
99
---
1010

11-
Ruby の標準添付ライブラリである RDoc に、jQuery に関するクロスサイトスクリプティング(XSS)の脆弱性が発見されました。
12-
全ての ruby ユーザーは、この問題に対するセキュリティフィックスが含まれた RDoc をバンドルするバージョンに更新することが推奨されます。
13-
また、現在、RDoc が生成した HTML ドキュメントを公開している場合は、セキュリティフィックスが含まれた RDoc を使用して HTML ドキュメントを再生成する必要があります。
11+
Ruby の標準添付ライブラリである RDoc に含まれる jQuery においてクロスサイトスクリプティング(XSS)の脆弱性が発見されました。
12+
全ての Ruby ユーザーは、この問題が修正された RDoc をバンドルする最新バージョンに更新することが推奨されます。
1413

1514
## 詳細
1615

@@ -20,9 +19,7 @@ Ruby の標準添付ライブラリである RDoc に、jQuery に関するク
2019
* [CVE-2015-9251](https://nvd.nist.gov/vuln/detail/CVE-2015-9251)
2120

2221
この問題の影響を受けるバージョンの Ruby のユーザーは、最新の Ruby に更新するか、下記の回避策を取ってください。
23-
24-
また、現在、RDoc が生成した HTML ドキュメントには、XSS 脆弱性が存在している可能性があります。
25-
そのため、これらの HTML ドキュメントを公開している場合は、その HTML ドキュメント自体を再生する必要があります。
22+
また、問題を完全に修正するためには、既に生成されている RDoc ドキュメントを再生成する必要があります。
2623

2724
## 影響を受けるバージョン
2825

@@ -32,21 +29,23 @@ Ruby の標準添付ライブラリである RDoc に、jQuery に関するク
3229
* Ruby 2.6.3 以前の全ての Ruby 2.6 系列
3330
* commit f308ab2131ee675000926540cbb8c13c91dc3be5 より前の開発版
3431

32+
## 更新後に実施すべき対応について
33+
34+
なお、RDoc は静的ドキュメント生成ツールです。
35+
したがって、RDoc 自体を修正しても、既に生成済みの HTML ドキュメントの脆弱性は解消されません。
36+
これらの HTML ドキュメントを公開している場合は、以上いずれかの対策を行った上で、該当の HTML ドキュメントを再生成してください。
37+
3538
## 回避策
3639

37-
原則としては、Ruby 自体を最新のリリースに更新してください。それができない場合は、以下のコマンドを実行することにより、RDoc を最新版 (6.1.2 以降) に更新することによって、各脆弱性が修正されます。
40+
原則としては、Ruby 自体を最新のリリースに更新してください。それができない場合は、以下のコマンドを実行することにより、RDoc を最新版 (6.1.2 以降) に更新することによって、各脆弱性が修正されます。ただし、上記の通り生成されたドキュメントの再生成も必要です。
3841

3942
```
4043
gem install rdoc -f
4144
```
4245

43-
注意: 当初この記事で rdoc-6.1.1.gem と書いていましたが、これは脆弱なバージョンでした。rdoc-6.1.2 以降を使用してください。
44-
45-
開発版については、HEAD に更新してください。
46+
注意: 当初この記事で一部 rdoc-6.1.1.gem と書かれていましたが、これは脆弱なバージョンでした。rdoc-6.1.2 以降を使用してください。
4647

47-
なお、RDoc は静的ドキュメント生成ツールです。
48-
したがって、RDoc 自体を修正しても、既に生成済みの HTML ドキュメントの脆弱性は解消されません。
49-
これらの HTML ドキュメントを公開している場合は、以上いずれかの対策を行った上で、該当の HTML ドキュメントを再生成してください。
48+
開発版については、master ブランチの最新 (HEAD) に更新してください。
5049

5150
## クレジット
5251

@@ -56,3 +55,4 @@ gem install rdoc -f
5655

5756
* 2019-08-28 09:00:00 (JST) 初版
5857
* 2019-08-28 20:50:00 (JST) RDoc のバージョン修正
58+
* 2019-08-28 21:30:00 (JST) いくつか表現の修正

0 commit comments

Comments
 (0)