testing the addition of an anti-cancer drug, pembrolizumab, to the usual intravesical chemotherapy treatment (gemcitabine) for the treatment of bcg-unresponsive non-muscle invasive bladder cancer

Conditions: Bladder Flat Urothelial Carcinoma In Situ; Non-Muscle Invasive Bladder Urothelial Carcinoma; Stage 0a Bladder Cancer AJCC v8; Stage 0is Bladder Cancer AJCC v8; Stage I Bladder Cancer AJCC v8

Summary: this phase ii trial studies the effect of adding pembrolizumab to gemcitabine in treating patients with non-muscle invasive bladder cancer whose cancer does not respond to bacillus calmette-guerin (bcg) treatment. chemotherapy drugs, such as gemcitabine, work in different ways to stop the growth of tumor cells, either by killing the cells, by stopping them from dividing, or by stopping them from spreading. immunotherapy with monoclonal antibodies, such as pembrolizumab, may help the patient's immune system attack the cancer, and may interfere with the ability of tumor cells to grow and spread. adding pembrolizumab to gemcitabine may delay the return of bcg-unresponsive bladder cancer for longer period compared to gemcitabine alone.

primary objectives: i. estimate the 6-month complete response rate of treatment with intravesical gemcitabine hydrochloride (gemcitabine) in combination with mk-3475 (pembrolizumab) in patients with bacillus calmette-guerin (bcg)-unresponsive non-muscle invasive bladder cancer (nmibc) that have a carcinoma in situ (cis) component. ii. estimate the 18 month event-free survival (efs) rate for all patients with bcg-unresponsive nmibc receiving intravesical gemcitabine in combination with mk-3475 (pembrolizumab). secondary objectives: i. to characterize the safety profile of the combination of intravesical gemcitabine with mk-3475 (pembrolizumab) with bcg-unresponsive nmibc (cis or high grade ta and t1 with or without a cis component). ii. to estimate progression-free survival (pfs) of patients with bcg-unresponsive nmibc treated with intravesical gemcitabine in combination with mk-3475 (pembrolizumab). iii. to estimate overall survival (os) of patients with bcg-unresponsive nmibc treated with intravesical gemcitabine in combination with mk-3475 (pembrolizumab). iv. to estimate cystectomy-free survival of patients with bcg-unresponsive nmibc treated with intravesical gemcitabine in combination with mk-3475 (pembrolizumab). v. to estimate recurrence-free survival (rfs) for patients with a cis component only and those without a cis component. exploratory objectives: i. to assess correlation between tumor mutation burden (tmb) and efs and 6-month complete response (cr) rate. ii. to assess correlation between specific genomic alterations (single nucleotide variant \[snv\] and copy number gains/loss) and efs and 6-month complete response rate. iii. to assess correlation between apobec mutational signature and efs and 6-month complete response rate. iv. to assess correlation between immune gene signatures (igs) and efs and 6-month complete response rate. v. to assess correlation between pd-l1 ribonucleic acid (rna) levels and efs and 6-month complete response rate. vi. to assess correlation between rna molecular subtype and efs and 6-month complete response rate. vii. to assess correlation between intratumoral t-cell receptor (tcr) clonality and efs and 6-month complete response rate. viii. to assess correlation between changes in peripheral blood tcr clonality and efs and 6-month complete response rate. ix. to assess efs in patients with urine cell free deoxyribonucleic acid (dna) (cfdna) + versus (vs.) patients with cfdna. outline: induction: patients receive pembrolizumab intravenously (iv) over 25-40 minutes on day 1 of cycles 1-4. patients also receive gemcitabine hydrochloride intravesically on days 1, 8 and 15 of cycles 1 and 2. treatment repeats every 3 weeks for 4 cycles in the absence of disease progression or unacceptable toxicity. maintenance: beginning cycle 5, patients with no evidence of disease after induction receive pembrolizumab iv over 25-40 minutes and gemcitabine intravesically on day 1 of each cycle. treatment repeats every 3 weeks for 12 cycles in the absence of disease progression or unacceptable toxicity. additionally, patients with t1 tumors undergo a re-staging transurethral resection of bladder tumor (turbt) within 60 days of registration. patients also undergo urine and blood sample collection, bladder biopsy, cystoscopy, computed tomography (ct) and magnetic resonance imaging (mri) throughout the study. after completion of study treatment, patients with evidence of disease (recurrence or progression) or stop study treatment to receive non-protocol treatment during induction are followed up every 6 months for 5 years. patients who go off treatment due to any reason other than recurrence/progression or receiving subsequent non-protocol treatment during induction will go to clinical follow-up until evidence of disease progression/recurrence. thereafter, patients are followed up every 6 months until 5 years from registration. patients who complete scheduled maintenance treatment according to protocol therapy are followed up every 3 months for 2 years and then every 6 months for 3 years until disease progression/recurrence or receiving subsequent non-protocol treatment. thereafter, patients are followed up every 6 months until 5 years from registration. patients who have evidence of disease during maintenance therapy are followed up every 6 months until 5 years from registration.

Eligibility criteria:
inclusion criteria: * high grade ta, t1 or cis urothelial carcinoma. accrual of patients with ta or t1 disease may be closed to ensure adequate patients enrollment to meet the primary endpoint * persistent disease (defined as not achieving disease free status) after completing therapy with at least induction bcg (\>= 5 doses) and the first round of maintenance or second induction course (\>= 2 doses). the subsequent round of bcg, either maintenance or repeat induction, must be given within 6 months of initial induction bcg * persistent high risk nmibc (t1, high grade ta and/or cis) must be within 9 months of the last bcg instillation despite having received adequate bcg as defined above. * registration must be within 12 months of last bcg instillation * high grade t1 after completing therapy with at least induction bcg (\>= 5 doses) or after completing therapy with at least induction bcg (\>= 5 doses) and first round of maintenance or second induction course (\>= 2 doses). the subsequent round of bcg, either maintenance or repeat induction, must be given within 6 months of initial induction bcg * disease recurrence (t1) must be within 9 months of the last bcg instillation despite having received adequate bcg as defined above * registration must be within 12 months of last bcg instillation * mixed variant histology (adenocarcinoma, squamous cell carcinoma) is eligible, but pure variant histology is ineligible * patients who are disease free at 6 months after starting bcg but have high grade recurrence (t1, ta, cis) while on maintenance therapy would be eligible * the recurrence must be within 6 months of the last bcg dose. * registration must be within 12 months of last maintenance bcg instillation * patients must be deemed unfit for radical cystectomy by the treating physician or refuse radical cystectomy * all patients must have histologically confirmed urothelial cancer of the bladder within 60 days prior to registration * all visible tumor must be completely resected 60 days prior to registration (residual pure cis is permitted) * all patients must have had a cystoscopy (or turbt with complete resection) without papillary tumor and negative urinary cytology within 28 days of registration (positive cytology is allowed in patients with cis) * all patients with t1 tumors must undergo a re-staging transurethral resection of bladder tumor (turbt) within 60 days of registration * there must be uninvolved muscularis propria present in the re-staging turbt. the initial turbt prior to re-staging turbt may be greater than 60 days prior to registration * patients must have had imaging with ct or mri abdomen/pelvis within 90 days of registration demonstrating no evidence of metastasis * patients cannot have had a history of urothelial carcinoma in the ureters or prostatic urethra 24 months prior to registration * patients must not be currently participating in or have participated in a study of an investigational agent or have used an investigational device within 4 weeks prior to study registration * note: participants who have entered the follow-up phase of an investigational study may participate as long as it has been more than 4 weeks after the last dose of the previous investigational agent at time of registration * patients must not have prior therapy with an anti-pd-1, anti-pd-l1, or anti pd l2 agent or with an agent directed to another stimulatory or co-inhibitory t-cell receptor (e.g., ctla-4, ox 40, cd137) * patients must not have undergone prior allogeneic hematopoietic stem cell transplantation within the last 5 years prior to registration. (participants who have had a transplant greater than 5 years ago are eligible as long as there are no symptoms of graft versus host disease \[gvhd\]) * patients must not have received prior systemic anti-cancer therapy including investigational agents within 4 weeks prior to treatment * note: participants must have recovered from all adverse events (aes) due to previous therapies to =\< grade 1 or baseline. participants with =\< grade 2 neuropathy may be eligible * note: if participant received major surgery, they must have recovered adequately from the toxicity and/or complications from the intervention prior to starting study treatment * patients must not have received prior radiotherapy within 2 weeks of study registration. participants must have recovered from all radiation-related toxicities, not require corticosteroids, and not have had radiation pneumonitis * patients must not have received radiation therapy to the lung that is \> 30 gy within 6 months prior to trial registration * not pregnant and not nursing, because this study involves an agent that has known genotoxic, mutagenic and teratogenic effects * women and men of reproductive potential should agree to use an appropriate method of birth control throughout their participation in this study due to the teratogenic potential of the therapy utilized in this trial. include as applicable: appropriate methods of birth control include abstinence, oral contraceptives, implantable hormonal contraceptives or double barrier method (diaphragm plus condom) * a woman of childbearing potential (wocbp) must not have a positive urine pregnancy test within 7 days prior to registration. if the urine test is positive or cannot be confirmed as negative, a serum pregnancy test will be required * patients must not be pregnant or breastfeeding or expecting to conceive or father children within the projected duration of the study, starting with registration through the last dose of treatment * age \>= 18 years * eastern cooperative oncology group (ecog) performance status 0-2 * absolute neutrophil count (anc) \>= 1,500/mm\^3 * platelet count \>= 100,000/mm\^3 * hemoglobin \>= 9.0 g/dl * creatinine =\< 1.5 x upper limit of normal (uln) * in patients with creatinine \> 1.5 x uln, if measured or calculated creatinine clearance \> 30 ml/min, then patient is eligible * total bilirubin =\< 1.5 x uln * in patients with a total bilirubin \> 1.5 x uln, if direct bilirubin \< 1.0 x uln, then patient is eligible * aspartate aminotransferase (ast)/ alanine aminotransferase (alt) =\< 2.5 x uln * patients must not have had an active autoimmune disease requiring systemic treatment within 24 months prior to registration. autoimmune diseases include, but not limited to, lupus erythematosus, rheumatoid arthritis, inflammatory bowel disease, antiphospholipid syndrome, wegener's granulomatosis, sjogren's syndrome, bell's palsy, guillain-barre syndrome, multiple sclerosis, autoimmune thyroid disease, vasculitis, or glomerulonephritis * patients must not have a diagnosis of immunodeficiency or is receiving chronic systemic steroid therapy (in dosing exceeding 10 mg daily of prednisone equivalent) or any other form of immunosuppressive therapy within 7 days prior to registration * note: replacement therapy (e.g., thyroxine, insulin, or physiologic corticosteroid replacement therapy for adrenal or pituitary insufficiency) is not considered a form of systemic treatment and is allowed * patients must not have a known psychiatric or substance abuse disorder that would interfere with the participant's ability to cooperate with the requirements of the study * patients must not have active tuberculosis * patients must not have been treated with antibiotics for an active infection within 14 days prior to registration. prophylactic antibiotics are permitted. treatment for a urinary tract infection (uti) is allowed but must be deemed adequately treated by the treating physician prior the start of cycle 1 (c1) day 1 (d1) * patients must not have a history of idiopathic pulmonary fibrosis or organizing pneumonia * patients must not have a history of (non-infectious) pneumonitis that required steroids or have current pneumonitis * patients with human immunodeficiency virus (hiv) are eligible with the following: * on effective anti-retroviral therapy with undetectable viral load within 6 months of registration * hiv-infected participants must not have a history of kaposi sarcoma and/or multicentric castleman disease * patients must not have a known additional malignancy that has had progression or has required active treatment in the last three years. exceptions include basal or squamous cell carcinoma of the skin that has undergone potentially curative therapy or in situ cervical cancer. a history of prostate cancer that was treated with definitive intent is allowed, provided that the prostate-specific antigen (psa) is undetectable for at least 1 year while off androgen deprivation therapy * patients must not have known active cns metastases and/or carcinomatous meningitis. participants with previously treated brain metastases may participate provided they are radiologically stable, i.e., without evidence of progression for at least 4 weeks by repeat imaging (note that the repeat imaging should be performed during study screening), clinically stable and without requirement of steroid treatment for at least 14 days prior to first dose of study treatment * patients must not have severe hypersensitivity (\>= grade 3) to pembrolizumab and/or any of its excipients * patients must not have an active infection requiring systemic therapy * patients must not have a known history of hepatitis b (defined as hepatitis b surface antigen \[hbsag\] reactive) or known active hepatitis c virus (defined as hepatitis c virus \[hcv\] ribonucleic acid \[rna\] \[qualitative\] is detected) infection * note: no testing for hepatitis b and hepatitis c is required unless mandated by a local health authority * patients must not have received live vaccines within 30 days of study drug administration. examples of live vaccines include, but are not limited to, the following: measles, mumps, rubella, varicella/zoster (chicken pox), yellow fever, rabies, bacillus calmette-guerin (bcg), and typhoid vaccine. seasonal influenza vaccines for injection are generally killed virus vaccines and are allowed; however, intranasal influenza vaccines (e.g., flumist®) are live attenuated vaccines and are not allowed. covid-19 vaccinations are permitted