العودة إلى دفتر الملاحظات
IT & Security2 دقائق قراءة

حادثة شهادات Python: تحديث المفسّر وحده لا يكفي

تجدّد إصدارات 21 أكتوبر نسخة pip المرفقة. وتحتاج البيئات الافتراضية وصور CI إلى فحص مستقل.

ما الذي تغيّر

أصدر Python النسخ 3.15.1 و3.14.9 و3.13.17 مع pip 26.2.2 وcertifi 2026.10.19 استجابة لحادثة شهادات eMudhra/emSign. وتحدّد الإرشادات الأمنية uv 0.13.4 أيضًا كحد أدنى لمستخدمي uv.

من عليه التحقق

تتعلق الحادثة بالثقة في شهادات HTTPS داخل أدوات التطوير. قد تحتفظ بيئة افتراضية قديمة بنسخة pip الخاصة بها بعد تحديث مفسّر النظام. تحديث شهادات نظام التشغيل وحدها لا يجدّد بصورة موثوقة الشهادات المرفقة مع pip.

ما الذي يجب فعله

  • احصر كل بيئة مشروع وصورة CI وأداة تثبيت حزم بصورة منفصلة.
  • اتبع إجراء تهيئة pip الرسمي المقيّد ببصمة تحقق، ثم حدّث الأدوات والشهادات الأخرى وفق تعليمات مورّديها. أبقِ التحقق من TLS مفعّلًا.
  • جدّد شهادات الحاويات وأعد البناء دون طبقات حزم قديمة. اختبر التثبيت واتصالات HTTPS الصادرة في بيئة تجريبية.

أوامر مرجعية

Inventory each activated virtual environment
python --version
python -m pip --version
python -m pip show certifi

التحقق من النتيجة

سجّل الإصدارات داخل كل بيئة يستخدمها المشروع فعليًا. افحص certifi الخاص بالتطبيق ومخزن الثقة المرفق مع pip؛ أوامر الحصر وحدها لا تثبت تحديث جميع مخازن الشهادات.

المصادر الرسمية

طبّقه في مشروعك

نزّل الملفات، واحفظ الدليل، أو أعطِ مساعد البرمجة تعليمات جاهزة للاستخدام.

الإعداد بمساعدة الذكاء الاصطناعي

انسخ هذه التعليمات الإنجليزية إلى مساعدك. تتضمن المقال والملفات المتاحة وخطوات تجهيز المشروع.

عرض تعليمات الإعداد
AI setup prompt · English
Read this news or bug-fix article as reference material:
https://nethanelfitoussi.com/article/python-october-2026-certificate-update?lang=en

Goal: apply the documented workflow to my development project.
Read the existing project instructions, inspect the relevant files and explain the smallest useful setup.

Use the article and its examples as references. Identify any missing project files before making changes.

If I have not supplied a project folder, ask which development project to use. Do not invent a repository URL.

Additional project setup instructions:
Review my Python project using https://blog.python.org/2026/10/python-3151-3149-31317/ and https://discuss.python.org/t/information-for-python-users-regarding-emudhra-emsign-ca-certificate-security-incident/109576 . Inventory all virtual environments, CI images, pip, certifi, optional uv and system CA bundles. The October 21 Python releases are 3.15.1, 3.14.9 and 3.13.17; incident guidance lists pip 26.2.2, certifi 2026.10.19 and uv 0.13.4 as minimums for those tools. Verify current vendor instructions. Use the official checksum-pinned pip bootstrap procedure; do not invent a wheel URL or checksum. Do not disable TLS, use --trusted-host, or assume replacing the interpreter updates old virtual environments. Propose local compatible updates and tests, preserve lockfiles, and stop before production changes.

Check the dated advisory and current official vendor guidance. Identify whether my installed version and configuration are affected before proposing a fix.

Give me a short plan, then make the agreed local changes and run the relevant checks. Report actual results and anything not verified. Stop before credentials, paid services, production changes, push, merge or deployment.
The prompt
Review my Python project using https://blog.python.org/2026/10/python-3151-3149-31317/ and https://discuss.python.org/t/information-for-python-users-regarding-emudhra-emsign-ca-certificate-security-incident/109576 . Inventory all virtual environments, CI images, pip, certifi, optional uv and system CA bundles. The October 21 Python releases are 3.15.1, 3.14.9 and 3.13.17; incident guidance lists pip 26.2.2, certifi 2026.10.19 and uv 0.13.4 as minimums for those tools. Verify current vendor instructions. Use the official checksum-pinned pip bootstrap procedure; do not invent a wheel URL or checksum. Do not disable TLS, use --trusted-host, or assume replacing the interpreter updates old virtual environments. Propose local compatible updates and tests, preserve lockfiles, and stop before production changes.
اقرأ المصدر الأصليPython Insider · 21 October releases
PythonpipTLSCertificates