sonidegib and pembrolizumab in treating patients with advanced solid tumors

Conditions: Clinical Stage III Cutaneous Melanoma AJCC v8; Clinical Stage III Gastric Cancer AJCC v8; Clinical Stage III Gastroesophageal Junction Adenocarcinoma AJCC v8; Clinical Stage IV Cutaneous Melanoma AJCC v8; Clinical Stage IV Gastric Cancer AJCC v8; Clinical Stage IV Gastroesophageal Junction Adenocarcinoma AJCC v8; Locally Advanced Gastric Adenocarcinoma; Locally Advanced Gastroesophageal Junction Adenocarcinoma; Locally Advanced Urothelial Carcinoma; Metastatic Gastric Adenocarcinoma; Metastatic Gastroesophageal Junction Adenocarcinoma; Metastatic Head and Neck Squamous Cell Carcinoma; Metastatic Lung Non-Small Cell Carcinoma; Metastatic Malignant Solid Neoplasm; Metastatic Melanoma; Metastatic Urothelial Carcinoma; Recurrent Head and Neck Squamous Cell Carcinoma; Refractory Lung Non-Small Cell Carcinoma; Stage IV Cutaneous Squamous Cell Carcinoma of the Head and Neck AJCC v8; Stage IV Lung Cancer AJCC v8; Unresectable Malignant Solid Neoplasm; Unresectable Melanoma

Summary: this phase i trial studies the best dose of sonidegib when given together with pembrolizumab and to see how well they work in treating patients with solid tumor that has spread to other places in the body (advanced). sonidegib may stop the growth of tumor cells by blocking some of the enzymes needed for cell growth. immunotherapy with monoclonal antibodies, such as pembrolizumab, may help the body's immune system attack the cancer, and may interfere with the ability of tumor cells to grow and spread. giving sonidegib and pembrolizumab may work better than standard treatment in treating patients with advanced solid tumors.

primary objectives: i. to determine the maximum tolerated dose (mtd) of sonidegib in combination with pembrolizumab in participants with advanced solid tumors as part of the dose escalation phase. (part a) ii. to estimate the response rate of sonidegib in combination with pembrolizumab in participants with non-small cell lung cancer (nsclc) or head and neck squamous cell carcinoma (hnscc) as part of the expansion cohort based on response evaluation criteria in solid tumors (recist) criteria. (part b) secondary objectives: i. to characterize the safety profile and tolerability of sonidegib and pembrolizumab. ii. to obtain preliminary estimates of efficacy as measured by response rate (based on recist criteria), disease control rate at 6 months, duration of response, overall survival (os), and progression free survival (pfs) of sonidegib and pembrolizumab in patients with selected advanced solid tumors. correlative research objective: i. to estimate the immunologic effects of sonidegib and pembrolizumab by investigating the changes in circulating tumor cells, immune cell markers, cytokines, and soluble pd-l1 in blood. outline: this is a dose-escalation study of sonidegib. patients receive sonidegib orally (po) once daily (qd) on days 1-8 and pembrolizumab intravenously (iv) over 30 minutes on day 8. treatment repeats every 21 days for up to 24 cycles in the absence of disease progression or unacceptable toxicity. after completion of study treatment, patients are followed up within 30 days.

Eligibility criteria:
inclusion criteria: * age \>= 18 years * measurable disease by recist criteria. * eastern cooperative oncology group (ecog) performance status (ps) of 0 or 1. * hemoglobin \>= 9.0 g/dl (obtained =\< 28 days prior to registration). * absolute neutrophil count (anc) \>= 1000/mm\^3 (obtained =\< 28 days prior to registration). * platelet count \>= 100,000/mm\^3 (obtained =\< 28 days prior to registration). * total bilirubin =\< 1.5 x upper limit of normal (uln) or direct bilirubin =\< uln (obtained =\< 28 days prior to registration). * alanine aminotransferase (alt) and aspartate transaminase (ast) =\< 2.5 x uln (=\< 5 x uln for patients with liver involvement) (obtained =\< 28 days prior to registration). * creatinine phosphokinase (ck) =\< 2.5 x uln (obtained =\< 28 days prior to registration). * serum creatinine =\ = 50 ml/min using the cockcroft-gault formula (obtained =\< 28 days prior to registration). * negative serum pregnancy test done =\< 7 days prior to registration, for persons of childbearing potential only. * patients of childbearing potential agree to use two forms of medically approved contraception while taking the study drug and for 20 months following the last dose of study drug. patients with partners of childbearing potential agree to use condoms, even after vasectomy, to avoid potential drug exposure to partner during study drug and for 8 months following the last dose of study drug. * willing to return to enrolling institution for follow-up (during the active monitoring phase of the study). * willing to provide blood samples for correlative research purposes. * must be able to swallow capsules and have no significant impairment in gastrointestinal absorption. * willing and able to provide informed consent. * part a (dose escalation): patient must satisfy all subsets in one of the following: * patients with nsclc. * pathologically confirmed metastatic non-small cell lung cancer (nsclc). * patients with egfr, alk, or braf genomic abnormalities must have also received and progressed on prior food and drug administration (fda)-approved targeted therapies * melanoma. * unresectable or metastatic melanoma. * note: previous treatment using pd-1/pd-l1 checkpoint inhibitors is allowed. * head and neck squamous cell cancer (hnscc): * recurrent or metastatic hnscc with disease progression on or after prior platinum-containing chemotherapy. * note: previous treatment using pd-1/pd-l1 checkpoint inhibitors is allowed. * urothelial carcinoma (locally advanced or metastatic). * newly diagnosed cisplatin ineligible patients. or * progression during or within 12 months of treatment with platinum-containing agent. * microsatellite instability-high (msi-h) cancer. * unresectable or metastatic solid tumors that progressed on prior treatment and are msi-h or mismatch repair deficient. * no satisfactory alternative treatment options available. for colorectal cancer, must have progressed following treatment with fluoropyramidine, oxaliplatin, and irinotecan. * gastric or gastroesophageal junction adenocarcinoma * locally advanced or metastatic tumors that express pd-l1 as evidenced by a combined positive score (\>= 1) using the pd-l1 immunohistochemistry (ihc) 223c pharmdx test (dako). * disease progression on 2 or more prior systemic therapies. * part b (dose expansion) cohort a: recurrent or metastatic hnscc * pathologically confirmed recurrent or metastatic hnscc * disease progression on or after platinum-containing chemotherapy * note: previous treatment using pd-1/pd-l1 checkpoint inhibitors is allowed. * part b ( dose expansion) cohort b: refractory nsclc. * pathologically confirmed metastatic non-small cell lung cancer (nsclc). * disease progression on \>= 1 prior line of systemic therapy. * note: previous treatment using pd-1/pd-l1 checkpoint inhibitors is allowed. * patients with egfr, alk, or braf genomic abnormalities must have also received and progressed on prior fda-approved targeted therapies. exclusion criteria: * any of the following because this study involves an agent that has known genotoxic, mutagenic and teratogenic effects: * pregnant persons. * nursing persons. * persons of childbearing potential and with partners of childbearing potential who are unwilling to employ adequate contraception. * ctcae \>= grade 3 treatment-emergent adverse event (teae) to prior checkpoint inhibitor, teae requiring systemic corticosteroids, or permanent treatment discontinuation due to toxicity. * neuromuscular disorders (e.g. inflammatory myopathies, muscular dystrophy, amyotrophic lateral sclerosis and spinal muscular atrophy), or a history of rhabdomyolysis. * concomitant treatment with drugs that are recognized to cause rhabdomyolysis, including statins. * note: patients taking such medications need to be discontinued at least 2 weeks prior to starting sonidegib treatment. if an agent to control lipids is required, pravastatin may be given with caution. * receiving strong inhibitors or inducers of cyp3a4/5, moderate inducers of cyp3a4, and/or grapefruit/grapefruit juice or starfruit products that cannot be discontinued before starting treatment with sonidegib. note: medications that are strong cyp3a4/5 inhibitors or inducers, moderate inducers of cyp3a4, and grapefruit/grapefruit juice/starfruit products should be discontinued at least 4 weeks prior to starting treatment with sonidegib. * active autoimmune diseases that have required systemic treatment modifications within the past 3 months or that require chronic systemic steroids or immunosuppressive agents. * requirement for systemic corticosteroids (\> 10 mg daily prednisone equivalent) or other immunosuppressive medications =\< 14 days prior to registration. note: inhaled or topical steroids, and adrenal replacement steroid doses \>10 mg daily prednisone equivalent, are permitted in the absence of active autoimmune disease. * life expectancy \< 3 months. * central nervous system metastases that are untreated, symptomatic, or require steroids. note: patients with history of stable treated brain metastases are eligible. stable treated metastases are defined as follows: * no evidence of progression for \>= 8 weeks on brain imaging (either magnetic resonance imaging \[mri\] or computed tomography \[ct\] scan). * no corticosteroid use for brain metastases for \>= 2 weeks before randomization. * \>= 8 weeks from completion of definitive treatment for brain metastases. * any of the following prior therapies: * major surgery =\< 4 weeks prior to registration. * received any experimental drugs or anti-neoplastic therapy =\< 4 weeks prior to receiving the first dose of study treatment * received a live vaccine =\< 30 days prior to registration * co-morbid systemic illnesses or other severe concurrent disease which, in the judgment of the investigator, would make the patient inappropriate for entry into this study or interfere significantly with the proper assessment of safety and toxicity of the prescribed regimens. * ongoing ae due to prior treatment not recovered to =\< grade 1 per ctcae or baseline unless clinically nonsignificant and/or stable with supportive therapy