René's URL Explorer Experiment


Title: Python: Add taint flow through list.extend and list.insert by Copilot · Pull Request #22310 · github/codeql · GitHub

Open Graph Title: Python: Add taint flow through list.extend and list.insert by Copilot · Pull Request #22310 · github/codeql

X Title: Python: Add taint flow through list.extend and list.insert by Copilot · Pull Request #22310 · github/codeql

Description: CodeQL's Python taint tracking propagated through list.append but not through list.extend, list.insert, or +=, causing security queries (e.g. CommandInjection.ql) to silently miss flows that differ only in which list-mutation idiom is used. acc = [] acc.extend([user]) # not reported acc.insert(0, user) # not reported subprocess.call(acc[0], shell=True) Flow summaries Added ListExtend flow summary in python/ql/lib/semmle/python/frameworks/Stdlib.qll: propagates element content from the argument's ListElement/SetElement/AnyTupleElement into the receiver's ListElement, plus a blunt taint fallback — same shape as the existing ListAppend/ListSummary/SetSummary models. Added ListInsert flow summary: propagates the inserted value into the receiver's ListElement, plus a blunt taint fallback. Tests test_collections.py: list_extend() now asserts tainted (previously MISSING); added list_extend_iteration() and list_insert() covering the new summaries. test_builtins.py: added precise flow-label tests for list.extend and list.insert. Known remaining gap: += acc += [user] still isn't tracked. It desugars to Python's + operator, handled by the shared concatStep, which is a global additional taint step — the shared dataflow library deliberately withholds "implicit content read" privileges from such global steps (only sinks and locally-defined config steps get them), so a list value flowing through + isn't unwrapped to see its tainted content. Fixing this properly needs new content-aware store/read steps for binary + in the core dataflow library, a materially larger change than a library flow summary. This is left as a documented MISSING test case (list_iadd()), consistent with the pre-existing, similarly-unaddressed dict | merge gap in the same test file. Fixes #22305

Open Graph Description: CodeQL's Python taint tracking propagated through list.append but not through list.extend, list.insert, or +=, causing security queries (e.g. CommandInjection.ql) to silently miss flows that di...

X Description: CodeQL's Python taint tracking propagated through list.append but not through list.extend, list.insert, or +=, causing security queries (e.g. CommandInjection.ql) to silently miss flows tha...

Opengraph URL: https://github.com/github/codeql/pull/22310

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e513c479-6171-074e-a72f-9c721b55daf1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE560:26EB2C:5FE207:85B306:6AF85BC6
html-safe-nonce1415e5ce437f0a049696021dbfa558707b042ea2e1818d1a5a6de74799151836
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTYwOjI2RUIyQzo1RkUyMDc6ODVCMzA2OjZBRjg1QkM2IiwidmlzaXRvcl9pZCI6IjU4MDczNzY1ODE1MjkxOTc1MTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccaff87932047a19efe41042d00d034e2719ce98db73304a60c17d80964ed95ae
hovercard-subject-tagpull_request:4244896000
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/codeql/pull/22310/files
twitter:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
og:image:altCodeQL's Python taint tracking propagated through list.append but not through list.extend, list.insert, or +=, causing security queries (e.g. CommandInjection.ql) to silently miss flows that di...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5713ecd83001b2f55c3509fb7a292bf7d66d0f167c7ae87a9f7eaec5a52bf8db
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/github/codeql git https://github.com/github/codeql.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id143040428
octolytics-dimension-repository_nwogithub/codeql
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id143040428
octolytics-dimension-repository_network_root_nwogithub/codeql
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release653be32ff5c755082a4db662491bfbbcfc9112c1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql/pull/22310/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F22310%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F22310%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=github%2Fcodeql
Reloadhttps://github.com/github/codeql/pull/22310/files
Reloadhttps://github.com/github/codeql/pull/22310/files
Reloadhttps://github.com/github/codeql/pull/22310/files
githubhttps://github.com/github
codeqlhttps://github.com/github/codeql
Codehttps://github.com/github/codeql
Issues1k (1k)https://github.com/github/codeql/issues
Pull requests516 (516)https://github.com/github/codeql/pulls
Discussionshttps://github.com/github/codeql/discussions
Actionshttps://github.com/github/codeql/actions
Projectshttps://github.com/github/codeql/projects
Security and qualityhttps://github.com/github/codeql/security
Insightshttps://github.com/github/codeql/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose
hvitvedhttps://github.com/hvitved
mainhttps://github.com/github/codeql/tree/main
copilot/python-taint-tracking-fixhttps://github.com/github/codeql/tree/copilot/python-taint-tracking-fix
Conversation 4 https://github.com/github/codeql/pull/22310
Commits 4 https://github.com/github/codeql/pull/22310/commits
Checks 11 https://github.com/github/codeql/pull/22310/checks
Findings https://github.com/github/codeql/pull/22310/findings
Files changed https://github.com/github/codeql/pull/22310/files
Please reload this pagehttps://github.com/github/codeql/pull/22310/files
Python: Add taint flow through list.extend and list.insert https://github.com/github/codeql/pull/22310/files#top
Show all changes 4 commits https://github.com/github/codeql/pull/22310/files
ebf09cb Initial plan Copilot Aug 10, 2026 https://github.com/github/codeql/pull/22310/commits/ebf09cb304970ac20ae9000d31b913d2b17ad305
1d1594e Add taint flow summaries for list.extend and list.insert Copilot Aug 10, 2026 https://github.com/github/codeql/pull/22310/commits/1d1594e20c7ebaac30130e73f37b96e30967d938
62fdb69 Remove redundant blunt taint fallback steps from ListExtend and ListI… Copilot Aug 11, 2026 https://github.com/github/codeql/pull/22310/commits/62fdb69be19675b89cd61af39c46cbf9565231ee
6846a37 Python: Update expected test output hvitved Aug 11, 2026 https://github.com/github/codeql/pull/22310/commits/6846a3721721553fab00a520d3deca3e77dfeeea
Clear filters https://github.com/github/codeql/pull/22310/files
Please reload this pagehttps://github.com/github/codeql/pull/22310/files
Please reload this pagehttps://github.com/github/codeql/pull/22310/files
2026-08-10-list-extend-insert-taint.md https://github.com/github/codeql/pull/22310/files#diff-1a41100c3b9e6733bdc4dfafe66c0854fab974362cfb622338409b9ff845c51b
Stdlib.qll https://github.com/github/codeql/pull/22310/files#diff-cac9a82bbea79b64358a082adcd1d176aa565091e6c6391c3b61cbb1bf784971
test_builtins.py https://github.com/github/codeql/pull/22310/files#diff-4f9ab2f77399d28d484a06a7bb20f05c7c89869bf6ac89bbdd705f2d8a1663e1
dataflow.expected https://github.com/github/codeql/pull/22310/files#diff-eefae7c89d68eda3ba01671f63b2a64629221fa17af55a6df6232113f5b11a95
test.py https://github.com/github/codeql/pull/22310/files#diff-ea8917b5845b3fe3ac1698bdea195f6ce6e78f5e8c1b13011fd0bac7c0ead478
test_collections.py https://github.com/github/codeql/pull/22310/files#diff-2fd522b8b6b8f5ca015db0af1256abe54886d9a4d1dcca5b9ca917637c18c8ed
https://github.com/github/codeql/blob/main/CODEOWNERS#L18
python/ql/lib/change-notes/2026-08-10-list-extend-insert-taint.mdhttps://github.com/github/codeql/pull/22310/files#diff-1a41100c3b9e6733bdc4dfafe66c0854fab974362cfb622338409b9ff845c51b
View file https://github.com/github/codeql/blob/6846a3721721553fab00a520d3deca3e77dfeeea/python/ql/lib/change-notes/2026-08-10-list-extend-insert-taint.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/22310/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L18
python/ql/lib/semmle/python/frameworks/Stdlib.qllhttps://github.com/github/codeql/pull/22310/files#diff-cac9a82bbea79b64358a082adcd1d176aa565091e6c6391c3b61cbb1bf784971
View file https://github.com/github/codeql/blob/6846a3721721553fab00a520d3deca3e77dfeeea/python/ql/lib/semmle/python/frameworks/Stdlib.qll
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/22310/{{ revealButtonHref }}
https://github.com/github/codeql/pull/22310/files#diff-cac9a82bbea79b64358a082adcd1d176aa565091e6c6391c3b61cbb1bf784971
https://github.com/github/codeql/pull/22310/files#diff-cac9a82bbea79b64358a082adcd1d176aa565091e6c6391c3b61cbb1bf784971
https://github.com/github/codeql/blob/main/CODEOWNERS#L18
python/ql/test/library-tests/dataflow/coverage/test_builtins.pyhttps://github.com/github/codeql/pull/22310/files#diff-4f9ab2f77399d28d484a06a7bb20f05c7c89869bf6ac89bbdd705f2d8a1663e1
View file https://github.com/github/codeql/blob/6846a3721721553fab00a520d3deca3e77dfeeea/python/ql/test/library-tests/dataflow/coverage/test_builtins.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/22310/{{ revealButtonHref }}
https://github.com/github/codeql/pull/22310/files#diff-4f9ab2f77399d28d484a06a7bb20f05c7c89869bf6ac89bbdd705f2d8a1663e1
https://github.com/github/codeql/pull/22310/files#diff-4f9ab2f77399d28d484a06a7bb20f05c7c89869bf6ac89bbdd705f2d8a1663e1
https://github.com/github/codeql/blob/main/CODEOWNERS#L18
python/ql/test/library-tests/dataflow/regression/dataflow.expectedhttps://github.com/github/codeql/pull/22310/files#diff-eefae7c89d68eda3ba01671f63b2a64629221fa17af55a6df6232113f5b11a95
View file https://github.com/github/codeql/blob/6846a3721721553fab00a520d3deca3e77dfeeea/python/ql/test/library-tests/dataflow/regression/dataflow.expected
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/22310/{{ revealButtonHref }}
https://github.com/github/codeql/pull/22310/files#diff-eefae7c89d68eda3ba01671f63b2a64629221fa17af55a6df6232113f5b11a95
https://github.com/github/codeql/pull/22310/files#diff-eefae7c89d68eda3ba01671f63b2a64629221fa17af55a6df6232113f5b11a95
https://github.com/github/codeql/blob/main/CODEOWNERS#L18
python/ql/test/library-tests/dataflow/regression/test.pyhttps://github.com/github/codeql/pull/22310/files#diff-ea8917b5845b3fe3ac1698bdea195f6ce6e78f5e8c1b13011fd0bac7c0ead478
View file https://github.com/github/codeql/blob/6846a3721721553fab00a520d3deca3e77dfeeea/python/ql/test/library-tests/dataflow/regression/test.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/22310/{{ revealButtonHref }}
https://github.com/github/codeql/pull/22310/files#diff-ea8917b5845b3fe3ac1698bdea195f6ce6e78f5e8c1b13011fd0bac7c0ead478
https://github.com/github/codeql/pull/22310/files#diff-ea8917b5845b3fe3ac1698bdea195f6ce6e78f5e8c1b13011fd0bac7c0ead478
https://github.com/github/codeql/blob/main/CODEOWNERS#L18
.../test/library-tests/dataflow/tainttracking/defaultAdditionalTaintStep/test_collections.pyhttps://github.com/github/codeql/pull/22310/files#diff-2fd522b8b6b8f5ca015db0af1256abe54886d9a4d1dcca5b9ca917637c18c8ed
View file https://github.com/github/codeql/blob/6846a3721721553fab00a520d3deca3e77dfeeea/python/ql/test/library-tests/dataflow/tainttracking/defaultAdditionalTaintStep/test_collections.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/22310/{{ revealButtonHref }}
https://github.com/github/codeql/pull/22310/files#diff-2fd522b8b6b8f5ca015db0af1256abe54886d9a4d1dcca5b9ca917637c18c8ed
https://github.com/github/codeql/pull/22310/files#diff-2fd522b8b6b8f5ca015db0af1256abe54886d9a4d1dcca5b9ca917637c18c8ed
https://github.com/github/codeql/pull/22310/files#diff-2fd522b8b6b8f5ca015db0af1256abe54886d9a4d1dcca5b9ca917637c18c8ed
https://github.com/github/codeql/pull/22310/files#diff-2fd522b8b6b8f5ca015db0af1256abe54886d9a4d1dcca5b9ca917637c18c8ed
Please reload this pagehttps://github.com/github/codeql/pull/22310/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.